Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.74 KB

CONTRIBUTING.md

File metadata and controls

49 lines (38 loc) · 1.74 KB

How to develop?

Welcome to "How to develop" guide.

This page covers the setup of your development environment

0. Unix machine

Make sure you are using a UNIX machine :-)

1. Install docker

Platform Instructions
mac dinghy or docker-for-mac
linux here

2. Install docker-compose

Installation instructions here: https://docs.docker.com/compose/install

3. Configure docker volumes

If you are using mac and docker for mac - you should configure your docker volumes. Add folder with project to docker for mac : Pic1

4. Ngrok

For frontend developing and scanner developing - you need to open your project via valid https. We use ngrok for that.

5. Make

Just install make to your machine: instructions here: mac / linux

6. Run application

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

7. Run migrations and seed initial values into DB

Simply run:

# Migrate database
make migrate-dev
# Initialise DB with test values
make db-seed

8. Finish!

Hooray - application was started. You can look at this via ngrok url or http://localhost or http://your_docker_host_ip

Scanner developing

Only via mobile and ngrok url