- Node
- Express JS
- Typescript
- MongoDB
- User SignIn/SignUp
- Basic Authentication with jwt-http
- OAuth 2.0 (Authentication with Access & Refresh Token)
- Data Validation with JOI
- Unit Testing
- Email Verification
- Docker Configuration
- Swagger Documentation
- Clone project
git clone [email protected]:morshedmasud/express-mongoDB-typescript-restAPI-starter.git
- Go to project root path and install all dependency with
yarn install
- Don't forget to create .env file as like .env.example and put necessary values like DB Info, Email Info
cp .env.example .env
- Start your mongodb service.
- Run the project
// development server
yarn run dev
// build project
yarn build
// production server
yarn run start
- Run With Docker
// build
sudo docker-compose build
// run
sudo docker-compose up
- Testing
// run all unit-test
yarn run test:unit
// run individual unit-test file
yarn run test:unit src/services/__tests__/auth.ts