Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

apilytics/apilytics

Repository files navigation

Apilytics 📈

ci

Prerequisites

Get the development environment up and running

  1. Clone this repository with: git clone git@github.com:apilytics/apilytics.git

  2. cd apilytics

  3. Follow the instructions for environment variables

  4. Build the images: docker-compose build

  5. Run the app: docker-compose up

  6. Access the application from localhost:3000

Environment variables

  • Copy the template env file: cp .env.template .env and add values for the <placeholder> variables in the .env file.

Seeding database with test data

Troubleshooting

My dependencies are not getting loaded from the built image?

  1. Run docker-compose build
  2. Run docker-compose up -V, (same as --renew-anow-volumes) this forces the anonymous node_modules volume to update its contents from the freshly built image.
  3. 🍻

My editor doesn't pick up latest Prisma typings?

  1. Run yarn generate outside the container, so the types matching the latest migrations populate your local node_modules.
  2. 🍻

Dashboard