Skip to content

jpcmf/Gympoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoStack

Gympoint
Gympoint full application

In this repository, you'll find the final challenge for Rocketseat's bootcamp GoStack 9.0 🎓 (2019/2020). It is a complete application, which includes a Back end, Front end and Mobile.

Back end   |    Front end   |    Mobile   |    License

Build Setup

The project requires Node.js and Docker to run locally.

☕ Back end

After cloning the repository, go to the folder named backend and install all the dependencies required.

# install dependencies
npm install

1. Creating the Postgres database with Docker

# run this command
docker run --name database -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres
# run this command
docker start database

2. Accessing the Postgres database

You must create a new database called gympoint. I suggest you to use Postbird for OSX. After installing, you must add these configurations below and then create your database with UTF8 client encoding.

# host
localhost

# port
5432 (the port you set in the docker run)

# username
postgres

# password
docker (the password you set in the docker run)

3. Creating the Redis database

# run this command
docker run --name redisgympoint -p 6379:6379 -d -t redis:alpine
# run this command
docker start redisgympoint

4. Changing the .env file

Rename the .env-example to .env and configure it with the database and redis details. Remember to set the REDIS_HOST to 127.0.0.1.

5. Running the sequelize migrations

# run this command
./node_modules/.bin/sequelize db:migrate

6. Running the sequelize seeds

# run this command
./node_modules/.bin/sequelize db:seed:all

7. Running the server

# run this command
npm run dev

8. Running the queue (mail server)

# run this command
npm run queue

💻 Front end

After cloning the repository, go to the folder named frontend and install all the dependencies required and run the project by using the command npm start.

# install dependencies
npm install
# run at localhost:3000
npm start

📱 Mobile

After cloning the repository, go to the folder named mobile, install all the dependencies and run the project by using the command react-native run-ios.

Note: The version of mobile app was developed for iOS system. You'll need the Xcode client in your computer in order to run the application in the Simulator or configure to use the app via USB. There are other options for running the app, for eg., Expo.

# install dependencies
npm install
# run react-native
react-native run-ios

📝 License

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


Made with 💙 by João Paulo C M Fricks

About

Gympoint - Full Application with Express, ReactJS, React Native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •