A template for a Node.js project using Typescript, ESLint, Prettier. It's Docker-ready. Everything is configured with the appropriate scripts and README. An MIT license is set.
License Notifications You must be signed in to change notification settings Additional navigation options jamesholcomb/nodejs-typescript-template This template gets updated daily so the latest dependencies are always used! What to do after using this templatepackage.json
to set the project name, version, description, and author.LICENSE
file to use your name in the Copyright section..prettierrc.json
file with your preferred values..github/workflows/upgrade-dependencies.yml
files, since it contains the workflow to upgrade all dependencies on a daily basis.
README.md
file.src/app.ts
file!yarn
or npm install
to install the dependencies..env.example
file to a .env
next to it, and edit it with your values.yarn build
or npm build
to build the files.yarn start
or npm start
to start the application.yarn dev
or npm dev
to combine the 2 steps above, while listening to changes and restarting automatically.Build:
Replacing my-app
with the image name.
Run
docker run -d -p 3000:3000 my-app
Replacing my-app
with the image name, and 3000:3000
with the host:container
ports to publish.
dbaeumer.vscode-eslint
) and Prettier - Code formatter (esbenp.prettier-vscode
) extensions is recommended.yarn lint
or npm lint
to lint the code.yarn format
or npm format
to format the code.Check the placeholder test examples to get started :
/src/app.ts
that provide a function sum
/test/app.spec.ts
who test the sum
functionThis files are just an example, feel free to remove it
yarn test
or npm test
to execute all tests.yarn test:watch
or npm test:watch
to run tests in watch (loop) mode.yarn test:coverage
or npm test:coverage
to see the tests coverage report.A template for a Node.js project using Typescript, ESLint, Prettier. It's Docker-ready. Everything is configured with the appropriate scripts and README. An MIT license is set.
Resources License Stars Watchers Forks LanguagesYou can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4