themetalfleece/nodejs-typescript-template
themetalfleece/nodejs-typescript-template has 79 GitHub stars and 33 forks. Star changes are not measured yet. Last checked 2026-11-13 22:03 UTC. Last push 2026-11-13.
Crecimiento de estrellas medido
- in 24h
- Recopilando historial
- in 7 days
- Recopilando historial
- in 15 days
- Recopilando historial
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
Acerca de
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.
Herramientas de desarrolloREADME.md
OriginalThis project was created using themetalfleece/nodejs-typescript-template
This template gets updated daily so the latest dependencies are always used!
What to do after using this template
- Edit
package.jsonto set the project name, version, description, and author. - Edit the
LICENSEfile to use your name in the Copyright section. - Edit the
.prettierrc.jsonfile with your preferred values. - Remove the
.github/workflows/upgrade-dependencies.ymlfiles, since it contains the workflow to upgrade all dependencies on a daily basis. - Delete this section from the
README.mdfile. - In case you don't use
npmas the package manager, updateDockerfileand.github/ci.ymlto use the commands of your package manager. - Start coding by editing the
src/app.tsfile!
Install
Using nvm (Recommended)
- Install nvm (Node Version Manager) if you haven't already.
- Clone this repository, and using a terminal navigate to its directory.
- Install and use the Node.js version specified in
.nvmrc:nvm install nvm use - Install dependencies using your preferred package manager:
Alternative Installation
- Install node.js.
- Clone this repository, and using a terminal navigate to its directory.
- Install dependencies:
- Using pnpm:
corepack enable pnpmandpnpm i - Using yarn:
corepack enable yarnandyarn - Using npm:
npm i
- Using pnpm:
Build & Run
- Copy the contents of the
.env.examplefile to a.envnext to it, and edit it with your values. - Build the files:
- Using pnpm:
pnpm build - Using yarn:
yarn build - Using npm:
npm run build
- Using pnpm:
- Start the application:
- Using pnpm:
pnpm start - Using yarn:
yarn start - Using npm:
npm start
- Using pnpm:
- You can run in development mode (combines build and start, with auto-reload):
- Using pnpm:
pnpm dev - Using yarn:
yarn dev - Using npm:
npm run dev
Run with Docker
Build:
docker build -t my-app .Replacing
my-appwith the image name.Run
docker run -d -p 3000:3000 my-appReplacing
my-appwith the image name, and3000:3000with thehost:containerports to publish.
Developing
Visual Studio Code
- Installing the Eslint (
dbaeumer.vscode-eslint) and Prettier - Code formatter (esbenp.prettier-vscode) extensions is recommended.
Linting & Formatting
- Lint the code:
- Using pnpm:
pnpm lint - Using yarn:
yarn lint - Using npm:
npm run lint - Format the code:
- Using pnpm:
pnpm format - Using yarn:
yarn format - Using npm:
npm run format
Testing
Check the placeholder test examples to get started :
/src/app.tsthat provide a functionsum/test/app.spec.tswho test thesumfunction
This files are just an example, feel free to remove it
- Execute all tests:
- Using pnpm:
pnpm test - Using yarn:
yarn test - Using npm:
npm test - Run tests in watch mode:
- Using pnpm:
pnpm test:watch - Using yarn:
yarn test:watch - Using npm:
npm run test:watch - Generate test coverage report:
- Using pnpm:
pnpm test:coverage - Using yarn:
yarn test:coverage - Using npm:
npm run test:coverage
Explorar proyectos relacionados
codecrafters-io/build-your-own-x
Domina la programación recreando desde cero tus tecnologías favoritas.
562,340 estrellaspublic-apis/public-apis
Una lista colectiva de API gratuitas
498,777 estrellasmorluto/rea
Ingeniería inversa de cualquier cosa con agentes, desde el comportamiento de la aplicación hasta los binarios nativos.
457,534 estrellasopenclaw/openclaw
La IA que de verdad hace las cosas. Cualquier sistema operativo y cualquier plataforma. Al estilo langosta. 🦞
394,398 estrellas