- Install Docker and Docker Compose.
- Run
docker-compose up -dto start up your development instance. - Run
docker-compose exec main diesel migration runto 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 mainstreams logs from the Rocket appdocker-compose exec db psql -U postgresopens a shell into the PostgreSQL databasedocker-compose stopstops 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.