/GymPoint

React Front-end for GymPoint the App for your Gym

Primary LanguageJavaScript

Gympoint

Bootcamp application

GitHub top language GitHub language count Codacy grade Stargazers Repository size GitHub last commit

Overview

This is a repository made in bootcamp gostack of Rocketseat.

This is an application ...

Preparing and running application

Cloning repository:

  ~ git clone https://github.com/ArthurJFreitas/GymPoint.git
  ~ cd GymPoint/

Installing dependencies:

  ~ yarn install
  or
  ~ npm install

Setting up database

To the database you need to have a SQL database remote or localy. All sensible configs should be setted in environment as environments variables.

To make this localy, just create a .env file in root of application and put the values like the template .env.example file with the values that you want.

DB_HOST=localhost
DB_USER=postgres
DB_PASS=gympoint
DB_NAME=gympoint

Preparing database

To prepare the database, you need to use Sequelize CLI, so to create and prepare database to use, just run:

  ~ yarn sequelize db:create
  ~ yarn sequelize db:migrate
  ~ yarn sequelize db:seed:all

If database already exists, just run the bellow command to delete it.

  ~ yarn sequelize db:drop

Using Docker and Docker Compose

You can set your database with Docker and Docker Compose, using the follow commands:

  ~ cd ..
  ~ docker-compose up -d

📝 License

This project is under the MIT license. See the LICENSE for more information.


Arthur Junio 👋 Get in touch!