This repository contains the GraphQL API for the Blog application.
Before you begin, ensure you have the following installed:
-
Install the required packages:
npm install
Alternatively, you can use the shorthand:
npm i
-
Review the
.env-example
file in the root of the project. Create a.env
file in the same location and populate it with your specific environment variables. -
Start the application:
npm run start
- To execute the tests, run:
npm run test
- To generate a test coverage report, run:
npm run test:cov
For local testing and development using Docker:
- Start the Docker containers:
docker compose up
All available commands can be found in the scripts
section of the package.json
file. The .env-example
file in the root directory provides a template for environment variables.