Boilerplate for user-facing web application using NodeJs in Typescript.
-
Authentication and session management with JWT and Redis
-
User
-UserRole
-RoleModule
model structure for user role management (including migration & seeder) -
ACLs for Web Routes and API routes
-
Minimal views for index and login pages
Nginx, Node Js, Redis, MySQL will run together.
docker-compose up
npm install
npm run build
npm start
npm run dev
npm run migrate-mysql
npm run seed
As of now, test database needs to be created with the name proj_test
to run tests.
npm run test
Coverage files will be exported in HTML format in coverage
directory.
npm run coverage