Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 864 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 864 Bytes

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.