This is a simple boilerplate codebase for building web applications using Express.js and TypeScript.
Make sure you have the following installed on your machine:
- Node.js
- npm (Node Package Manager)
-
Clone the repository:
git clone https://github.com/your-username/express-ts.git
-
Install dependencies:
cd express-ts npm install
-
For development:
npm run dev
-
For building the project:
npm run build
-
For starting the server:
npm start
-
For running tests:
npm test
- dev: Run the application in development mode using
ts-node-dev
. - build: Build the TypeScript code into the
dist
directory. - start: Start the server using the compiled code in
dist
. - test: Run tests using Jest.
- cors: Cross-Origin Resource Sharing middleware.
- dotenv: Loads environment variables from a
.env
file. - express: Web framework for Node.js.
- mongoose: MongoDB object modeling tool.
- tsconfig-paths: Extend Node.js module resolution to support TypeScript.
- @types/cors: TypeScript type definitions for cors.
- @types/express: TypeScript type definitions for express.
- ts-node-dev: TypeScript execution environment for development.
- typescript: TypeScript language compiler.
This project is licensed under the ISC License - see the LICENSE file for details.