A solid foundation for building modern Node.js applications with TypeScript, sink included.
- Pre-configured TypeScript setup
- Package management with NPM
- Build and Development scripts with watch mode
- Linting with ESLint and Prettier
- Essential ESLint plugins for improved code quality
- Unit testing with Vitest
- Automated dependency-free
.env
injection - Auto-build with
prepare
script - Dockerfile for production deployment
- Docker Compose for local development
- GitHub Actions for CI/CD
- Clone or download this repository to start a new Node.js project
- Run
npm install
to install all dependencies - Create a
.env
file in the root of your project if needed - Start the development server by running npm run
start:dev
- Build your awesome Node.js application with TypeScript!
Use this repository as the template for your next project or try it out now in a codespace!
npm run env:load
: Loads environment variables from the.env
filenpm run clean
: Cleans the project by removing thedist
directorynpm run build
: Builds the TypeScript project, outputting ES modulesnpm run start
: Runs the compiled JavaScript applicationnpm run start:dev
: Starts the development server with live-reloadingnpm run format
: Formats your code using Prettiernpm run lint
: Runs ESLint to check for code quality issuesnpm run lint:fix
: Automatically fixes code quality issues using ESLintnpm run test
: Runs unit tests with Vitestnpm run coverage
: Generates ac8
code coverage reportnpm run docker:build
: Builds a Docker image for production deploymentnpm run docker:run
: Runs the Docker image in a container
Feel free to contribute to this project by opening issues or submitting pull requests. We appreciate any feedback and improvements to make this starter even better!
This project is licensed under the MIT License - see the LICENSE file for details.
Happy coding! 🎉