simple starter for newbies.
My main goal with this project is a simple and easy starter for new learners. I like you to be focused on the correct learning path and not spending hours in choosing the right project structure.
Full Explanation available on Dev Community Post: here
- Beautiful Code as simple as possible.
- Clear Structure inspired by MVC Model.
- Localization implemention.
- Authorization CRUD example.
All script are defined in the package-scripts.js file, but the most important ones are listed here.
Install node-ts npm i -g node-ts
Install all dependencies with npm i
Run code quality analysis using npm run lint
or npm run lint:fix
to fix errors.
src\
|--mvc
|--models\ # Mongoose models (data layer)
|--routes\ # Views routes
|--controllers\ # Route controllers (controller layer)
|--middlewares\ # Custom express middlewares
|--helpers\ # Utility functions
|--app.js # Express app
|--init\ # Init Express app
|--locales\ # translation maps
|--db.ts # Init DB Connection
|--localize.ts # Init localization
|--routes.ts # Init Routes
|--thApp.ts # Express app
|--index.ts # App entry point