This repository provides a basic setup for a Node.js and Express application using TypeScript and an MVC (Model-View-Controller) structure. It serves as a foundation for building more complex web applications.
- TypeScript: Leverages TypeScript for improved code maintainability and scalability.
- Express.js: Uses the Express.js framework for handling routing and requests.
- MVC Architecture: Organizes code into models, views, and controllers for better separation of concerns.
- EJS Templating: Utilizes EJS for rendering dynamic views.
- Nodemon: Includes Nodemon for automatic server restarts during development.
- Clone the repository:
git clone https://github.com/MarcoValeri/node-express-typescript-setup.git
- Install dependencies:
npm install
- Start the development server:
npm start
- Open your browser and visit
http://localhost:3000
├── controllers # Controllers for handling application logic │ └── homeController.ts ├── routes # Routes for defining URL endpoints │ └── homeRoutes.ts ├── views # EJS templates for rendering views │ └── home.ejs └── app.ts # Main application file
npm start
: Starts the development server with Nodemon.
This project is licensed under the ISC License.