Skip to content

improve-ar/express-reactjs-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clone the project

$ cd backend && npm install

$ cd frontend && npm install

Asure you have docker runing in your local machine and execute the following command from the root of the project

$ docker-compose up --build

Asure mysql container been ready before backend container otherwise nodejs backend will cant connect to mysql. Wait to mysql container are ready and execute the previous command again.

Wait until react server is up.

Open a web browser and go to http://localhost:3001/

How to run tests:

$ docker ps

Copy truenorthtest_backend CONTAINER_ID

$ docker exec $DOCKER_CONTAINER_ID npm run test

Replace $DOCKER_CONTAINER_ID with your ID and execute.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published