The following code can be run locally by running the following two commands.
yarn install
yarn start
on the root level of the directory.
The code can also be run using the Dockerfile. First you must install Docker for your host operating system from the resources at [Docker|https://www.docker.com/].
With docker running you can build an image and run a container from that image:
- Using a command line terminal, change into the KyberVirtualHackathon root directory
- Run
docker-compose up --build
(this will build the image based on the dockerFile and then start it as per the instructions provided in the docker-compose.yml) - Once it is up use this command to connect to the shell
docker exec -it [TO INSERT DOCKER CONTAINDER ID] /bin/sh -c "[ -e /bin/bash ] && /bin/bash || /bin/sh
. Here you will be able to do any NPM install that you may require. - To close use
CTRL+C
in the terminal in which docker container was initiated
At this point the react server will start and you will be able to access http://localhost:3000 in any browser on your host operating system.