afteracademy/wimm-apis
关于
Modern NodeJS Backend Development - WhereIsMyMotivation - Nestjs Backend Architecture - Learn to build a modular and secure backend services using very popular Nestjs framework.
网站与应用开发可以做什么
- API key support
- Token based Authentication
- Role based Authorization
- Database dump auto setup
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文NestJS Backend Architecture Project
WhereIsMyMotivation

This is a complete production ready project to learn modern techniques and approaches to build a performant and secure backend API services. It is designed for web apps, mobile apps, and other API services.
Framework
- NestJS
- Express Node
- Typescript
- Mongoose
- Mongodb
- Redis
- JsonWebToken
- Jest
- Docker
- Multer
Highlights
- API key support
- Token based Authentication
- Role based Authorization
- Database dump auto setup
- vscode template support
- Unit Tests
- Integration Tests
- 75% plus Test Coverage
- Clean and modular codebase
Notes
A few things are added to aid the learning process
- disk submodule is added to provide images
- database dump is added to seed the database
About Project
WhereIsMyMotivation is a concept where you see videos and quotes that can inspire you everyday. You will get information on great personalities and make them your perceived mentors. You can also subscribe to topics of your interests.
You can track your happiness level and write down daily journals. You can also share things of interest from web to store in your motivation box.
Using this app can bring a little bit of happiness and energy to live an inspired life.
Read the Article to understand this project
Mastering NestJS — Building an Effective REST API Backend
Android App using this backend

The Android App using this backend is also open-sourced. You can find the project here: Modern Android Development - WhereIsMyMotivation
Request-Response Flow
Installation Instruction
vscode is the recommended editor - dark theme
Get the repo
# clone repository recursively
git clone https://github.com/afteracademy/wimm-apis.git --recursive
Install libraries
$ npm install
Run Docker Compose
- Install Docker and Docker Compose. Find Instructions Here.
# install and start docker containers
docker-compose up --build
- You will be able to access the api from http://localhost:3000
Run Tests
docker exec -t wimm-apis-tester npm run test:cov
If having any issue
- Make sure 3000 port is not occupied else change PORT in .env file.
- Make sure 27017 port is not occupied else change DB_PORT in .env file.
- Make sure 6379 port is not occupied else change REDIS_PORT in .env file.
Run on the local machine
Change the following hosts in the .env and .env.test
- DB_HOST=localhost
- REDIS_HOST=localhost
Best way to run this project is to use the vscode Run and Debug button. Scripts are available for debugging and template generation on vscode.
$ npm install
Running the app
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Test
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
API DOC
Minimalistic version of this project
If you want to use plain Express.js to create the same project explore the Minimalistic version of this project
Minimalistic Backend Development - WhereIsMyMotivation
Find this project useful ? :heart:
- Support it by clicking the :star: button on the upper right of this page. :v:
More on YouTube channel - AfterAcademy
Subscribe to the YouTube channel AfterAcademy for understanding the concepts used in this project:
Contribution
Please feel free to fork it and open a PR.
探索相关项目
加载中…