https://github.com/matiullah-karimi/node-express-starter
A Dockerized Node-Express starter project that includes authentication, authorization, file upload, user management and role management.
https://github.com/matiullah-karimi/node-express-starter
express expressjs file-upload jwt jwt-authentication node-starter-kit nodejs passport starter starter-kit
Last synced: 8 months ago
JSON representation
A Dockerized Node-Express starter project that includes authentication, authorization, file upload, user management and role management.
- Host: GitHub
- URL: https://github.com/matiullah-karimi/node-express-starter
- Owner: matiullah-karimi
- Created: 2020-12-02T11:31:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-03T19:40:07.000Z (almost 2 years ago)
- Last Synced: 2025-03-30T19:34:17.196Z (9 months ago)
- Topics: express, expressjs, file-upload, jwt, jwt-authentication, node-starter-kit, nodejs, passport, starter, starter-kit
- Language: JavaScript
- Homepage:
- Size: 61.5 KB
- Stars: 22
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-express-starter
A Dockerized Node-Express starter project that includes authentication, authorization, file upload, user management and role management.
# Setup
## Copy env file
```
cp .env.example .env
```
## Running with Docker
```
docker-compose build
docker-compose up
```
## Running with Nodemon
```
npm i -g nodemon
npm install
nodemon bin/www
```
## Test
```
npm run test
```
## Seed
```
npm run seed
```
# API Endpoints
```
POST /api/login
GET /api/roles
POST /api/users
GET /api/users
GET /api/users/:id
PUT /api/users/:id
DELETE /api/users/:id
POST /api/file-upload
GET /api/file-upload/:id
DELETE /api/file-upload/:id
```
# Third Party Packages
* Passport
* passport-jwt
* passport-local
* jsonwebtokens
* mongoose
* multer
* loadash
* bcrypt
* joi
* faker
* dotenv