Skip to content

hack-as-a-service/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

584eee2 · Sep 23, 2022
Dec 19, 2021
Aug 25, 2022
Sep 3, 2022
Aug 25, 2022
Aug 29, 2022
Dec 31, 2021
Sep 23, 2022
Aug 20, 2021
Sep 5, 2021
Sep 26, 2021
Nov 21, 2021
Aug 31, 2022
Aug 31, 2022
Aug 1, 2021
Jan 8, 2022
Dec 29, 2021
Sep 26, 2021
Oct 10, 2021
Dec 31, 2021
Dec 31, 2021
Oct 13, 2021

Repository files navigation

Hack as a Service API

Running locally

  1. Install Docker and Docker Compose.
  2. Run docker-compose up -d to start up your development instance.
  3. Run docker-compose exec main diesel migration run to update the database (you only need to run this once, unless you modify the database schema)
  4. Visit http://localhost:3000

Other commands:

  • docker-compose logs -f main streams logs from the Rocket app
  • docker-compose exec db psql -U postgres opens a shell into the PostgreSQL database
  • docker-compose stop stops the dev environment

Using the frontend

After starting the frontend, the frontend is now available at http://localhost:3000. If the backend is running, http://localhost:3000/api will proxy to it. Point your browser to http://localhost:3000/api/dev/login, which should create a test user and log you in.