This is the front-end for the dev.f batch one of Culiacan, its backend can be found here
To install the dependencies
yarn install
When developing it's recommended to use to built in sever that comes bundled with the app which can be launched with
yarn start
If you however prefer to work with the compiled static files they can be created with
yarn build
Its output will be at build/ and can now be placed into a web server such as nginx or apache
To install docker in ubuntu 16.04
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
In case of ubuntu 18.04
sudo apt-get install -y docker.io
Next docker compose will be requiered
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Docker will perform all the necesary steps here, gathering the dependencies, building them into new statics and placing them into a container with a nginx server in the front to serve them
To buld the new containers use the following command, the --build flag will force the containers to be rebuilt instead of using the previous ones
docker-compose up --build -d
To tear down the currently running containers
docker-compose down -v
Alternatively both commands may be chained should a problem arise with them
docker-compose down -v && docker-compose up --build -d