This project was developed with the following technologies:
In view of the project's purpose (managing classes and school / academic activities) the main responsibilities and non-responsibilities of the system are shown below.
- Install docker and docker-compose
❯ sudo docker build -t gametask/react .
// dockerfile to development without nginx
❯ sudo docker build -f Dockerfile.dev -t gametask/react .
❯ sudo docker run -it -v ${PWD}:/app -v /app/node_modules -p 3001:3000 --rm gametask/react
// application running on http://localhost:3001/
** ${PWD} => project path
** -v => volumes
** -it => interactive terminal
** -p => ports
** -rm => removes the container and volumes, after the container is finished
** --from=build
Dockerfile sets up a multi-stage build. We first built our React.js application and then copied the nginx.conf file from our local machine to the image along with our static html and javascript files that were built in the first phase.
❯ sudo docker-compose stop
❯ sudo docker-compose up -d --build // create image and activate container
// application running on http://localhost:3001/
cp contrib/.env-sample .env
email: [email protected]
senha: testXXXX
❯ yarn storybook