Warehouse Stock
- Docker: Installation Guide
- Docker Compose: Installation Guide
- JavaScript / Type Script NodeJS / NestJS GraphQL โ Apollo server PostgreSQL Rest API
These instructions will help you get the project up and running on your local development environment.
-
Clone the repository:
git clone [email protected]:leonmex/challengeyara.git cd challengeyara
-
Build and start the Docker containers:
docker compose build docker compose up -d
2.1 Migrations For migrations, if is not executed on the build you need to use the command
docker exec -ti webapp /bin/sh
Ones in side of the container
cd warehouse-management-system
npx prisma migrate dev --name init && npx prisma db seed
The project have two access 1 for warehouses 1 for apollo server
Configurations you can find for the project or any environment variables that need to be set. You can reference the docker-compose.yml file for configuration options and .env
POSTGRES_USER="postgres" POSTGRES_PASSWORD="postgrestest" POSTGRES_DB="test"
WEBAPP_PORT=3000 NGINX_PORT=80
LIMIT_WAREHOUSE_PRODUCTS_LIST=20
DATABASE_URL="postgresql://postgres:postgrestest@postgres:5432/test?schema=public"
Port for the Nginx web server (default: 80). Postgres database (default: 5432). Apollo Server (5433)