This guide covers development-specific details for contributing to the Simple Mock Server.
├── src
│ ├── app.ts # Main application setup
│ ├── constants.ts # Application constants
│ ├── env.ts # Environment variable handler
│ ├── middlewares # middlewares directory
│ ├── models # models directory
│ ├── routes # API routes directory
│ └── utils # Utility functions directory
├── tests # Jest tests directory
└── Dockerfile # Docker configuration
To install dependencies using Yarn:
yarn install
To start the development server:
yarn dev
This command will start the server with Nodemon, which automatically restarts it when file changes are detected.
To run tests using Jest:
yarn test
This will execute all the test cases located in the tests/
directory.
To compile the TypeScript code:
yarn build
This will generate JavaScript files from the TypeScript source code.