Typescript with ESM syntax and some gentle .eslint rules that impose the massive use of types for developers
- Have node installed
- Download the repo
npm install
in your terminalnpx eslint .
to impose the lint rules- (edit .env variables if db needed)
npm run dev
- Starts the application and listen to the default .env server_port 3000
- Runs through nodemon so every change restart the server
npm run update-models [bash console]
~(not required)- After configuring the related .env vars, this script download all your db entities as a sequelize model
- If you're not gonna use a db, ignore this script, the folder /models and the related .env vars as well.
This is made thanx to
sequelize
and especiallysequelize-auto
that connects to our db and
retrieves all the information needed to build your model starting from the db