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
Express / Nodejs Starter with JWT authentication, SQLite database, Sequelize ORM, unit tests and basic tooling - Provided by **AppSeed**[App Generator](https://appseed.us/app-generator).
4
+
Express / Nodejs Starter with JWT authentication, MongoDB - Provided by **AppSeed**[App Generator](https://appseed.us/app-generator).
5
+
Authentication is based on [json web tokens](https://jwt.io). `passport-jwt` strategy is used to handle the Email/Password authentication. After a successful login the generated token is sent to the requester.
5
6
6
7
<br />
7
8
8
-
> Status: **Work in progress** (complete rewrite).
- Discord: LIVE Support (registered AppSeed Users)
9
14
10
15
<br />
11
16
12
17
## Requirements
13
18
14
19
-[Node.js](https://nodejs.org/) >= 10.x
20
+
-[MongoDB](https://www.mongodb.com/) server
15
21
16
22
<br />
17
23
18
-
## Authentication
24
+
## How to use the code
19
25
20
-
Authentication is based on [json web tokens](https://jwt.io). `passport-jwt` strategy is used to handle the Email/Password authentication. After a successful login the generated token is sent to the requester.
Runs the application with [nodemon]("https://nodemon.io/"). Server is listening on Port 3000 by default. This can be overwritten by `PORT` constant in `.env` file.
88
+
## API
87
89
88
-
<br />
90
+
For a fast set up, use this POSTMAN file: [api_sample](#)
89
91
90
-
## Curl tests
92
+
> **Register** - `api/users/signup`
91
93
92
-
**Create user**
94
+
```
95
+
POST api/users/signup
96
+
Content-Type: application/json
93
97
94
-
```bash
95
-
$ curl -X POST -H 'Content-Type: application/json' \
0 commit comments