This is a starter kit for developing modern web apps with a full auth system. Features reset password, email verification, session store with redis. Also, a react client is configured to showcase how to use it with the backend. A vue/angular client is currently on the roadmap. If you can contribute on said frameworks, feel free to open a PR.
| xxx | Name | When |
|---|---|---|
| ✓ | CRUD to mongodb | |
| ✓ | Auth Session with redis | |
| ✓ | Middleware System | |
| ✓ | Error Handling | |
| ✓ | File Upload | |
| ✓ | OAuth Github & Google | |
| ✓ | April 6 | |
| ✓ | Containerize with Docker | April 8 |
| ✓ | Absolute timeout on Sessions | April 9 |
| ✓ | Reset Password | April 9 |
| ✓ | Start prompt with chalk | April 9 |
| Auth Retry Limit | How to implement ? | |
| ✓ | Database Seed with Faker | After retry & reset |
| Logger | Unsure if will do | |
| E2E tests | Soon | |
| ✓ | Separate ROOT from backend | Soon |
| ✓ | Husky setup | After root is seperated |
| ✓ | Frontend sample usage endpoints | After husky setup |
Transfer from joi to zod |
Frontend is done |
Typescript front to back
- ReactJS
- NodeJS
- Express
- MongoDB
- Joi for input validation
- Complete MongoDB Auth System (Reset password, Email verification, Sessions)
- Husky (Lint-staged,Eslint) setup
- Typescript Full stack
- Docker Services
- Sessions with Redis
- Schema Validation using Joi
- OAuth with github and google
- NodeJS
- Docker
- Yarn(preferred)/NPM
- Run
git clone https://github.com/romanmunar/express-sessions-react-typescript-starter - Run
cd express-sessions-react-typescript-starterand Runyarn - Install packages on backend
cd ./backend, Runyarn - While installing, Fill up the
.env.examplefile with your own creds.(avoid changing the ports) - Run
yarn upto start the docker services - Run
yarn devto run nodemon and watch tsc
- Open a new terminal and
cd ../react-client - Install packages on client, run
yarn - Run
yarn devto start the dev server - Open browser to a