This project provides a simple starting point for setting up a Node.js server with TypeScript. It includes basic configuration for TypeScript, Express, and error handling utilities, making it a good foundation for building more complex Node.js applications.
This repository is set up with the following technologies:
- Node.js: JavaScript runtime used for the server.
- TypeScript: A superset of JavaScript that adds type safety.
- Express: Web framework to build APIs.
- nodemon: Tool for auto-reloading the server during development.
- ts-node: TypeScript execution environment for Node.js.
Follow the steps below to set up the project locally:
git clone https://github.com/AtikulSoftware/starting-node-ts.git
cd starting-node-tsAfter installing the dependencies, you can start the server using:
npm run devTo compile the TypeScript files into JavaScript, use:
npm run buildAfter building the project, you can run the compiled JavaScript using:
npm start