Welcome to the Node, Express and TypeScript Project Template! This repository serves as a starter template for building Node.js applications with TypeScript. It comes pre-configured with models, controllers, routes, and bundling, so you can focus on building your application.
- TypeScript: Strongly typed language for writing robust and maintainable code.
- Project Structure: Organized folder structure with models, controllers, and routes.
- Bundling pkgroll: Pre-configured with a bundler for efficient builds.
- TSX: For automatic server restarts an running typescript during development.
- Dependency Management: Configured with npm.
βββ src
β βββ controllers
β β βββ exampleController.ts
β βββ middleware
β β βββ exampleMiddleware.ts
β βββ models
β β βββ exampleModel.ts
β βββ routes
β β βββ exampleRoutes.ts
β βββ server.ts // Main entry point of the application
βββ dist // Compiled output (auto-generated)
βββ package.json // Project dependencies and scripts
βββ.gitignore // Ignore files to github
βββ tsconfig.json // TypeScript configuration
βββ README.md // Project documentation
Run the development server with hot-reloading:
npm run devCompile TypeScript files to JavaScript:
npm run buildAfter building the project, start the server:
npm startdev: Starts the development server with hot-reloading.build: Compiles the TypeScript source code to JavaScript.start: Starts the production server.
This project is licensed under the MIT License.
Happy coding! π