- Install Docker and Docker Compose.
- Run
docker-compose up -d
to start up your development instance. - 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) - Visit http://localhost:3000
Other commands:
docker-compose logs -f main
streams logs from the Rocket appdocker-compose exec db psql -U postgres
opens a shell into the PostgreSQL databasedocker-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.