Skip to content

TypeScript based React/Express boilerplate with authentication

Notifications You must be signed in to change notification settings

dsenkus/ts-express-react-auth

Repository files navigation

TypeScript React/ExpressJS boilerplate with authentication

Screenshot

Work in progress...

Features

  • Developed with TypeScript
  • Express.js backend
  • React/MobX frontend
  • Redis
  • Passport.js user registration/authentication
  • Account confirmation via email
  • Password reset capabilities
  • Jest tests
  • SparkPost integration
  • Docker PostgreSQL database with Adminer (http://localhost:8080)

How to start?

$ docker-composer up -d
$ npm run dev
$ cd client
$ npm start

TODO

  • needs better config/env solution
  • extract auth into services/
  • extract users queries/validators to entities/users
  • refactor tests
  • better error handling, restart server when error code 500, catch unhandled promise rejections
    • build wrapper for DB errors
  • integrate PM2
  • integrate logger
  • rename anonymous arrow functions to regular named functions
  • add rate limiter for auth
  • add size limiter for body-parser
  • remove X-Powered-By header
  • restructure devDependencies and dependencies

Reset database

docker-compose down
docker volume rm ts-auth_ts_auth
docker-compose build

About

TypeScript based React/Express boilerplate with authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published