Authorization server used by Colossal potato for authorization purposes.
You will need to install Docker, docker-compose / Docker Compose plugin & node in order to run this project
Add env variables in root of the project so docker can set the database correctly
MYSQL_DATABASE=app
MYSQL_USER=app
MYSQL_PASSWORD=app
MYSQL_HOST=db
MYSQL_ROOT_PASSWORD=root
MYSQL_TCP_PORT=3308
APP_PORT=5002
APP_NAME=Needle
APP_MAIN_ROUTE=hashesAPP_NAME is just used in app service and will be removed in the future.
APP_MAIN_ROUTE is to have dynamic main route for storing incoming hashes
and will likely be removed / replaced in the future.
Start the project
docker compose up --buildapi -> localhost:5000 db -> localhost:3306
#
docker compose run --rm api <command>
# watch mode
docker compose run --rm api pnpm run start:dev
# production mode
docker compose run --rm api pnpm run start:prod# unit tests
docker compose run --rm api pnpm run test
# e2e tests
docker compose run --rm api pnpm run test:e2e
# test coverage
docker compose run --rm api pnpm run test:cov