Rocketseat's final bootcamp challenge.
GymPoint is a system for control and interaction between gym and their students. It is possible to log in, register students, plans, enrollments, help orders, check ins and respond to help requests.
Your help orders are displayed and answered in real time with socket.io
The following instructions show the walkthrough of how to copy the project to run on local machine for development and testing purposes.
A step by step series of examples that tell you how to get a development env running
# Run the following command in a local directory to copy the project.
$> git clone https://github.com/joaogasparr/gostack-gympoint.git
The first thing you must do is configure all database settings. To do this, follow the steps below at the terminal.
$> docker run --name postgresql -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres:11
$> docker run --name redis -p 6379:6379 -d -t redis:alpine
# First install back-end dependencies
$> cd ./backend/ && yarn
# Create the .env file by copying from .env.example and replace the information
$> cp .env.example .env
# Create database table structure
$> yarn sequelize db:migrate
# Create records in the database
$> yarn sequelize db:seed:all
# Start back-end service
$> yarn dev
# First install front-end dependencies
$> cd ./frontend/ && yarn
# Then run app
$> yarn start
# Admin User
$> Login: admin@gympoint.com
$> Password: 123456
# First install mobile dependencies
$> cd ./mobile/ && yarn
# Create the .env file by copying from .env.example and replace the information
$> cp .env.example .env
# Second step start metro bundler
$> yarn start or yarn start --reset-cache
Then run the app on android
$> react-native run-android or yarn android
Then run the app on iOS
$> cd ./ios/ && pod install && cd ..
$> react-native run-ios or yarn ios
This project is licensed under the MIT License - see the LICENSE file for details
Made with ♥ by João Vitor Gaspar 👋 See my linkedin!
