Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6a1ba2d

Browse files
Modify README.md
1 parent 8bb3563 commit 6a1ba2d

File tree

1 file changed

+30
-32
lines changed

1 file changed

+30
-32
lines changed

‎README.md

Lines changed: 30 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,46 @@
11
# Nodejs Expressjs MongoDB Ready-to-use API Project Structure
2-
[![Author](http://img.shields.io/badge/author-@maitraysuthar-blue.svg)](https://www.linkedin.com/in/maitray-suthar/) [![GitHub license](https://img.shields.io/github/license/maitraysuthar/rest-api-nodejs-mongodb.svg)](https://github.com/maitraysuthar/rest-api-nodejs-mongodb/blob/master/LICENSE) ![GitHub repo size](https://img.shields.io/github/repo-size/maitraysuthar/rest-api-nodejs-mongodb) [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/b3eb80984adc4671988ffb22d6ad83df)](https://www.codacy.com/manual/maitraysuthar/rest-api-nodejs-mongodb?utm_source=github.com&utm_medium=referral&utm_content=maitraysuthar/rest-api-nodejs-mongodb&utm_campaign=Badge_Coverage) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/b3eb80984adc4671988ffb22d6ad83df)](https://www.codacy.com/manual/maitraysuthar/rest-api-nodejs-mongodb?utm_source=github.com&utm_medium=referral&utm_content=maitraysuthar/rest-api-nodejs-mongodb&utm_campaign=Badge_Grade) ![Travis (.com)](https://img.shields.io/travis/com/maitraysuthar/rest-api-nodejs-mongodb)
32

4-
A ready-to-use boilerplate for REST API Development with Node.js, Express, and MongoDB
3+
[![Author](http://img.shields.io/badge/author-@maitraysuthar-blue.svg)](https://www.linkedin.com/in/maitray-suthar/) [![GitHub license](https://img.shields.io/github/license/maitraysuthar/rest-api-nodejs-mongodb.svg)](https://github.com/maitraysuthar/rest-api-nodejs-mongodb/blob/master/LICENSE) ![GitHub repo size](https://img.shields.io/github/repo-size/maitraysuthar/rest-api-nodejs-mongodb) [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/b3eb80984adc4671988ffb22d6ad83df)](https://www.codacy.com/manual/maitraysuthar/rest-api-nodejs-mongodb?utm_source=github.com&utm_medium=referral&utm_content=maitraysuthar/rest-api-nodejs-mongodb&utm_campaign=Badge_Coverage) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/b3eb80984adc4671988ffb22d6ad83df)](https://www.codacy.com/manual/maitraysuthar/rest-api-nodejs-mongodb?utm_source=github.com&utm_medium=referral&utm_content=maitraysuthar/rest-api-nodejs-mongodb&utm_campaign=Badge_Grade) ![Travis (.com)](https://img.shields.io/travis/com/maitraysuthar/rest-api-nodejs-mongodb)
54

5+
A ready-to-use boilerplate for REST API Development with Node.js, Express, and MongoDB
66

77
## Getting started
88

9-
109
This 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).
1110

1211
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.
1312

14-
## Some Great Stuff
15-
16-
<a href="https://tracking.gitads.io/?campaign=gitads&repo=rest-api-nodejs-mongodb&redirect=gitads.io" target="_blank"><img src="https://images.gitads.io/rest-api-nodejs-mongodb" alt="Some Great Stuff" style="height: auto !important;width: auto !important;" ></a>
17-
<br><i>This advert was placed by <a href="https://tracking.gitads.io/?campaign=gitads&repo=rest-api-nodejs-mongodb&redirect=gitads.io" rel="gitads">GitAds</a> </i>
18-
1913
## Advertise for Job/Work Contract
2014

21-
I am looking for a good job or work contract. You can contact me directly on my email ([maitraysuthar@gmail.com](mailto:maitraysuthar@gmail.com "maitraysuthar@gmail.com")) or you can download my CV from my personal [website](https://maitraysuthar.github.io/portfolio/). Looking forward. Thanks :smile:
15+
I am open for a good job or work contract. You can contact me directly on my email ([maitraysuthar@gmail.com](mailto:maitraysuthar@gmail.com "maitraysuthar@gmail.com")) or you can download my CV from my personal [website](https://maitraysuthar.github.io/portfolio/).
2216

2317
## Buy me a Coffee
2418

25-
If 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 a coffee for me. I would be very thankful if you buy me a coffee, please buy me a coffee :smile:.
19+
If 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.
2620

2721
<a href="https://www.buymeacoffee.com/36GgOoQ2f" target="_blank"><img src="https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
2822

2923
## Features
3024

31-
- Basic Authentication (Register/Login with hashed password)
32-
- Account confirmation with 4 (Changeable) digit OTP.
33-
- Email helper ready just import and use.
34-
- JWT Tokens, make requests with a token after login with `Authorization` header with value `Bearer yourToken` where `yourToken` will be returned in Login response.
35-
- Pre-defined response structures with proper status codes.
36-
- Included CORS.
37-
- **Book** example with **CRUD** operations.
38-
- Validations added.
39-
- Included API collection for Postman.
40-
- Light-weight project.
41-
- Test cases with [Mocha](https://mochajs.org/) and [Chai](https://www.chaijs.com/).
42-
- Code coverage with [Istanbuljs (nyc)](https://istanbul.js.org/).
43-
- Included CI (Continuous Integration) with [Travis CI](https://travis-ci.org).
44-
- Linting with [Eslint](https://eslint.org/).
25+
- Basic Authentication (Register/Login with hashed password)
26+
- Account confirmation with 4 (Changeable) digit OTP.
27+
- Email helper ready just import and use.
28+
- JWT Tokens, make requests with a token after login with `Authorization` header with value `Bearer yourToken` where `yourToken` will be returned in Login response.
29+
- Pre-defined response structures with proper status codes.
30+
- Included CORS.
31+
- **Book** example with **CRUD** operations.
32+
- Validations added.
33+
- Included API collection for Postman.
34+
- Light-weight project.
35+
- Test cases with [Mocha](https://mochajs.org/) and [Chai](https://www.chaijs.com/).
36+
- Code coverage with [Istanbuljs (nyc)](https://istanbul.js.org/).
37+
- Included CI (Continuous Integration) with [Travis CI](https://travis-ci.org).
38+
- Linting with [Eslint](https://eslint.org/).
4539

4640
## Software Requirements
4741

48-
- Node.js **8+**
49-
- MongoDB **3.6+** (Recommended **4+**)
42+
- Node.js **8+**
43+
- MongoDB **3.6+** (Recommended **4+**)
5044

5145
## How to install
5246

@@ -79,7 +73,9 @@ npm install
7973
```
8074
3. The file `.env` is already ignored, so you never commit your credentials.
8175
4. Change the values of the file to your environment. Helpful comments added to `.env.example` file to understand the constants.
82-
## Project structure
76+
77+
## Project structure
78+
8379
```sh
8480
.
8581
├── app.js
@@ -112,9 +108,10 @@ npm install
112108
└── stylesheets
113109
└── style.css
114110
```
111+
115112
## How to run
116113

117-
### Running API server locally
114+
### Running API server locally
118115

119116
```bash
120117
npm run dev
@@ -128,7 +125,8 @@ App is running ...
128125
129126
Press CTRL + C to stop the process.
130127
```
131-
**Note:** `YOUR_DB_CONNECTION_STRING` will be your MongoDB connection string.
128+
129+
**Note:** `YOUR_DB_CONNECTION_STRING` will be your MongoDB connection string.
132130

133131
### Creating new models
134132

@@ -144,7 +142,7 @@ If you need to add more controllers to the project just create a new file in `/c
144142

145143
## Tests
146144

147-
### Running Test Cases
145+
### Running Test Cases
148146

149147
```bash
150148
npm test
@@ -158,7 +156,7 @@ If you need to add more test cases to the project just create a new file in `/te
158156

159157
## ESLint
160158

161-
### Running Eslint
159+
### Running Eslint
162160

163161
```bash
164162
npm run lint
@@ -172,4 +170,4 @@ Every project needs improvements, Feel free to report any bugs or improvements.
172170

173171
## License
174172

175-
This project is open-sourced software licensed under the MIT License. See the LICENSE file for more information.
173+
This project is open-sourced software licensed under the MIT License. See the LICENSE file for more information.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /