Skip to content

99Notesdevs/backend

Repository files navigation

Getting Started

Setup Instructions

Follow these steps to set up and run the project:

  1. Clone the repository(SSH)

    git clone git@github.com:99Notesdevs/backend.git
    cd backend
  2. Clone the repository(HTTPS)

    git clone https://github.com/99Notesdevs/backend.git
    cd backend
  3. Start the containers First Time ONLY

    docker-compose up --build -d

    After First Time

    docker-compose up -d
  4. Run database migrations First Time ONLY

    docker exec -it local_app npx prisma migrate dev
  5. Seed the database

    docker exec -it local_app node prisma/seed

    In case of redis cache hit problem

    docker exec -it local_redis redis-cli FLUSHALL

DON'T FORGET TO SET THE .env file

Now your backend is running with the Prisma client and migrations applied.

  1. Check logs in backend:

    docker logs -f local_app
  2. Check logs in grafana:

    docker logs -f local_grafana
  3. Check logs in loki:

    docker logs -f local_loki

** Configure Data Source in Grafana at http://localhost:3200 to http://loki:3100 **

Port Mapping

  • local_app: http://localhost:5000
  • local_grafana: http://grafana:3200
  • local_loki: http://loki:3100
  • local_postgres: postgres:5432
  • local_redis: redis:6379

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •