Welcome to "How to develop" guide.
This page covers the setup of your development environment
Make sure you are using a UNIX machine :-)
Platform | Instructions |
---|---|
mac | dinghy or docker-for-mac |
linux | here |
Installation instructions here: https://docs.docker.com/compose/install
If you are using mac
and docker for mac
- you should configure your docker volumes. Add folder with project to docker for mac :
For frontend developing and scanner developing - you need to open your project via valid https
. We use ngrok for that.
Just install make to your machine: instructions here: mac / linux
To run the project, run the following command:
make start-dev
When it's running - script will check ngrok
. If ngrok
is not installed - script will install it for you (just type admin password - unfortunately it require sudo).
After startup project - navigate to http://localhost:4040 and copy ngrok url
Simply run:
# Migrate database
make migrate-dev
# Initialise DB with test values
make db-seed
Hooray - application was started. You can look at this via ngrok url
or http://localhost or http://your_docker_host_ip
Only via mobile and ngrok url