alaahd / securrency-fe-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instructions to run the project (Production Mode)

1- Stop all running containers (if there is any)

docker-compose down

Optional: If you want to destroy and rebuild all docker images of the project, run the command below:

docker-compose down --rmi all

2- Build docker images and run containers (services)

docker-compose up

Thats it ! you should have all services up and running !


The React frontend application (Dapp) is spun up at http://localhost:3000 and it proxies internally to the server using the linked name.

The API server (worker) is spun up at http://localhost:8080

Advanced Configuration

Build, create, and start all in the background.

docker-compose up -d

Rebuild all images, create all containers, and start all containers.

docker-compose up --build

Notes

If you face any issue in the first load of the application, try to restart services that are not responding using the commands below:

Restart server

docker-compose restart server

Restart client

docker-compose restart nginx

To check status

docker-compose ps

Instructions to run the project in (Development Mode)

Server

cd ./server
cp -a .env.sample .env
npm install && npm start

Client

cd ./client
cp -a .env.sample .env
npm install && npm start

About


Languages

Language:Less 58.0%Language:TypeScript 33.5%Language:JavaScript 6.6%Language:HTML 1.1%Language:Dockerfile 0.6%Language:CSS 0.1%