This template provides a starting point for building an Express.js server using TypeScript. It is designed to be used with the Node.js runtime and the npm package manager. By default, it includes dependencies for MongoDB as the database.
- Update
package.json
by replacing the placeholders forname
,version
, anddescription
. - Update git origin
git remote remove origin git remote add origin <url> git push -u origin master
- Install all required dependencies by running
npm install
. - Begin coding in the
src/main.ts
file. - Start the server in development mode with
npm run dev
.
To achieve optimal integration with VS Code, you can use the following settings.
Add the configuration below to your .vscode/settings.json
file:
{
"editor.rulers": [120],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.indentSize": 4
}