-
Clone this repository with:
git clone git@github.com:apilytics/apilytics.git
-
cd apilytics
-
Build the images:
docker-compose build
-
Run the app:
docker-compose up
-
Access the application from localhost:3000
- Copy the template env file:
cp .env.template .env
and add values for the <placeholder> variables in the.env
file.
- Run
yarn seed
to manually seed your database with the seeding script insrc/prisma/seed.ts
. The script will also be automatically run after the initialyarn migrate
. More info at: https://www.prisma.io/docs/guides/database/seed-database
- Run
docker-compose build
- Run
docker-compose up -V
, (same as--renew-anow-volumes
) this forces the anonymousnode_modules
volume to update its contents from the freshly built image. - 🍻
- Run
yarn generate
outside the container, so the types matching the latest migrations populate your localnode_modules
. - 🍻