New Project
Tips for initializing new blank projects
Typescript Environment
Basic environment for executing Typescript scripts.
Commands & Configs
Initialize Node Project
Installing TS on Node
Node by default don't recognize Typescript only Javascript.
Generate the tsconfig.json
file:
or for a more strict configuration:
You can add these to configure the folders to include and exclude in transpilation:
tsconfig.json
Configure Custom Running Commands
To be executed with npm
.
package.json
The building output directory may be configured in the tsconfig.json
file.
Optional: Install nodemon
(For Cold Reloading)
nodemon
(For Cold Reloading)To auto reload the project when files change.
package.json
nodemon.json
Optional: Install dotenv
(For Env variables)
dotenv
(For Env variables)nodemon.json
Optional: Install tsconfig-path
(???)
tsconfig-path
(???).gitignore
Running
To run + openning the browser:
Just running the server:
Express Environment
Basic environment for executing an Express
(RestAPI) project.
Commands & Configs
Initialize the Project
Follow Commands & Configs from Typescript Env
.
Install Main Dependencies
Optional: Mkdirp
To run mkdir -p
for create folders if don't exist.
Optional: JWT Tokens (For JWT Token generation)
Optional: Async (Async/Parallel execution)
Optional: Mysql (Mysql connector)
Optional: Axios
Optional: Express-Validator
For Body, Query and Param data validation/sanitization.
Last updated