Node js express mongodb project github
This full E-Commerce API build using Express and Mongo. Here it contains all the required functionalities of a full-fledged E-commerce API like User registration, User Login, Category Add, Edit & Delete, Product Add, Edit, Delete, Add product feature image & Add product images, Order creation and etc... Show
A ready-to-use boilerplate for REST API Development with Node.js, Express, and MongoDB Getting startedThis is a basic API skeleton written in JavaScript ES2015. Very useful to building a RESTful web APIs for your front-end platforms like Android, iOS or JavaScript frameworks (Angular, Reactjs, etc). This project will run on NodeJs using MongoDB as database. I had tried to maintain the code structure easy as any beginner can also adopt the flow and start building an API. Project is open for suggestions, Bug reports and pull requests. Advertise for Job/Work ContractI am open for a good job or work contract. You can contact me directly on my email () or you can download my CV from my personal website. Buy me a CoffeeIf you consider my project as helpful stuff, You can appreciate me or my hard work and time spent to create this helpful structure with buying me a coffee. Features
Software Requirements
How to installUsing Git (recommended)
git clone https://github.com/maitraysuthar/rest-api-nodejs-mongodb.git ./myproject Using manual download ZIP
Install npm dependencies after installing (Git or manual download)Setting up environments
Project structure. ├── app.js ├── package.json ├── bin │ └── www ├── controllers │ ├── AuthController.js │ └── BookController.js ├── models │ ├── BookModel.js │ └── UserModel.js ├── routes │ ├── api.js │ ├── auth.js │ └── book.js ├── middlewares │ ├── jwt.js ├── helpers │ ├── apiResponse.js │ ├── constants.js │ ├── mailer.js │ └── utility.js ├── test │ ├── testConfig.js │ ├── auth.js │ └── book.js └── public ├── index.html └── stylesheets └── style.css How to runRunning API server locallyYou will know server
is running by checking the output of the command Connected to mongodb:YOUR_DB_CONNECTION_STRING App is running ... Press CTRL + C to stop the process. Note: Creating new modelsIf you need to add more models to the project just create a new file in Creating new routesIf you need to add more routes to the project just create a new file in Creating new controllersIf you need to add more controllers to the project just create a new file in TestsRunning Test CasesYou can set custom command for test at Creating new testsIf you need to add more test cases to the project just create a new file in ESLintRunning EslintYou can set custom rules for eslint in Bugs or improvementsEvery project needs improvements, Feel free to report any bugs or improvements. Pull requests are always welcome. LicenseThis project is open-sourced software licensed under the MIT License. See the LICENSE file for more information. |