You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Visit www.toptal.com/blog and subscribe to our newsletter to read great posts
3
+
This sample is published as part of [the corresponding article](https://www.toptal.com/nodejs/secure-rest-api-in-nodejs) at the Toptal Engineering Blog. Visit https://www.toptal.com/developers/blog and subscribe to our newsletter to read great posts!
8
4
9
5
## Before using
10
6
11
7
- Please make sure that you have:
12
-
-node.js installed (https://nodejs.org/)
13
-
-have mongodb installed and running locally (https://www.mongodb.com/)
8
+
-Node.js installed (https://nodejs.org/)
9
+
-MongoDB installed and running locally (https://www.mongodb.com/)
14
10
- Using Windows, just open the terminal at where you installed mongo and run `mongod.exe`
15
-
- run npm install in your root project folder
11
+
- Run `npm install` or `yarn` in your root project folder
12
+
16
13
## Usage
17
14
18
15
To run the project, please use a command line the following:
19
-
- npm start
16
+
-`npm start`
20
17
- It will run the server at port 3600.
21
18
22
19
@@ -35,3 +32,11 @@ If you are familiar to docker and you have docker installed on your machine and
35
32
### 2020-02-01
36
33
37
34
I've created a 2020 version of this project using Typescript. If you might be interested on it, please check the following repository: https://github.com/makinhs/expressjs-api-tutorial
35
+
36
+
### 2020-09-09
37
+
38
+
- Updated and pruned dependencies.
39
+
- Fixed deprecation warnings.
40
+
- Leveraged `findOneAndUpdate` to simplify PATCH code.
41
+
- Changed default MongoDB server name to `localhost` to simplify first-time setup.
42
+
- Checked that it works with the latest version of Node.js, 14.9.0.
0 commit comments