A simple Node.js server built with TypeScript and Express.
- TypeScript support
- Express.js for routing
- Environment variables via
dotenv
/type_script_server
│── /src
│ ├── index.ts # Main server file
│ ├── routes.ts # Routes setup
│── /dist # Compiled JavaScript files (generated)
│── package.json # Dependencies & scripts
│── tsconfig.json # TypeScript configuration
│── .env # Environment variables
│── vercel.json # Vercel deployment config
│── README.md # Documentation
git clone https://github.com/Ap00rvx/basic-type-script-server.git
cd basic-type-script-servernpm installCreate a .env file in the root directory:
PORT=3000
MONGO_URI=mongodb://localhost:27017/mydb
npm run devnpm run build
npm start