This is an auto generated project from BackAppX api-generator.
- Node.js (version 8 or higher)
- MongoDB (version 3.4 or higher)
- NPM (version 5 or higher)
- Git (version 2 or higher)
- Clone this repository
- Install dependencies:
npm install
- Run the application:
npm start
- Open your web browser and go to
http://localhost:3000
You can configure the application by setting environment variables:
PORT
: The port on which the application will listen (default:3000
)DATABASE_URL
: The URL of the MongoDB database (default:mongodb://localhost:27017/my-node-app
)
You can set these environment variables in a .env
file in the root directory of the project.
The application provides the following endpoints:
GET /api/register
: Create a new userPOST /api/login
: Sign inGET /api/orders
: Get All ordersPOST /api/stripe
: Checkout with stripe
If you would like to contribute to this project, please follow these steps:
- Fork the repository
- Create a new branch:
git checkout -b my-feature-branch
- Make your changes and commit them:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-feature-branch
- Create a pull request
All rights reserved. © 2023