NodeJS/ReactJS - RERO FITNESS

About

Application to register gym workouts using docker and nginx

How to run for development

  1. Clone this repository
git clone https://github.com/sararchh/projeto-rerofitness.git
  1. Install all dependencies
npm i
  1. . Configure the .env file using the .env.example file in each back and front directory (see "Running locally application or inside docker section" for details)

    BACKEND:

MONGO_FULL_URL=

JWT_SECRET=
JWT_REFRESH_SECRET=
JWT_EXPIRES=

PORT=

MONGO_INITDB_ROOT_USERNAME=
MONGO_INITDB_ROOT_PASSWORD=

FRONT:

VITE_API=http://localhost:80/api
  1. Execute server
npm run dev
  1. Build
npm run build

Building and starting for production for the BACKEND

npm run  build
npm start

Building and starting for production for the FRONTEND

npm run  build
npm start

Docker

docker-compose up

Access in browser using docker

http://localhost:80

Made with 💜 by Sara Rocha