This project demonstrates the integration of Fastify, MikroORM, and PostgreSQL in a TypeScript environment.
- Node.js (>=20.x)
- Yarn
Configuration options can be set in the .env file. Make sure to copy config.env.example to .env and adjust the values as needed.
git clone https://github.com/pratyakash/fastify-mikro-postgres.git
cd fastify-mikro-postgres
yarn install
To run the project in development mode with automatic reloading:
yarn dev
To build and start the project in production mode:
yarn build
yarn start
To start the docker
docker-compose up --build -d