The front-end project address: https://github.com/supervons/ExploreRN
- Project Init
- Login and Register
- Api add authentication - JWT
- Update password and user information
- CURD function for profile information such as avatar, theme and motto
- WebSocket API Demo
- Send email
- cabin + axe + signale log middleware
- Change
typeorm
toprisma
- SQL optimize
- Redis-based list query acceleration
npm install
npm run start
npm run build
npm run pro
.
├── src
│ ├── controller // controller
│ ├── entity
│ ├── redis //redis config
│ ├── router //route config
│ ├── service //service
│ ├── config.ts //project common config
│ ├── constants.ts //project const value
│ └── index.ts //entrance index.js
├── .env //config file
├── ecosystem.config.js //pm2 config
├── ormconfig.json //database ORM config file
├── nodemon.json //nodemon config
├── package.json //npm config
└── tsconfig.json //ts config
- MySQL
- Redis
Recommended Docker
.
.env
PORT_REDIS
Redis portHOST_REDIS
Redis hostPASSWORD_REDIS
Redis password
ormconfig.ts
type
DB typehost
DB host
Read more: https://github.com/typeorm/typeorm
src/utils/email.ts
host
Your email provider host.port
Your email provider part.auth
user
Email account, sender by it.pass
Pass token, check your email provider setting.
./public/mysql.sql