Skip to content

A fullstack application to get information about the Brazilian football championship.

Notifications You must be signed in to change notification settings

Thesamuel01/TFC

Repository files navigation

Trybe Football Club

This is a project developed at Trybe's Back-End Module.

Trybe Football Club is a full stack application to access information about the Brazilian football championship. It were developed using a node server and Sequelize ORM to manipulate a MySQL database.

React frontend and all config files except for the backend/frontend dockerfile were provided by Trybe, the application backend was developed from scratch.

Summary

Context

In the application you can do:

  • Log in to the System.
  • View team matches.
  • Create and update a match only when you are logged in.
  • View teams leaderboard.

Technologies and Tools

This project used the following technologies and tools:

Notes

Git, GitHub and Commit History

Lint

  • The project was developed following the Clean Code standards specified by Trybe's Lint.

Installing and running the app

To run this project properly, docker-compose version should be at 1.29 or higher and node version should be at 16.14.0 LTS or higher.

Login

Data to log into frontend app
admin

email: admin@admin.com
password: secret_admin

user

email: user@user.com
password: secret_user

Download the app

git clone git@github.com:Thesamuel01/TFC.git

Running with docker

Enter into project directory

cd TFC

Install all dependencies

npm install

Build docker containers and their network.

npm run compose:up

Access application front-end

http://localhost:3000

Stop application

npm run compose:down

Running without docker

* To run this app without docker you need a running MYSQL server.

Enter into project directory

cd TFC

Install all dependencies

npm install

Go to backend directory

cd app/backend

Set environment variables

Set your environment variables in .env.example file according to your development environment and then change its name to .env

JWT_SECRET=
APP_PORT=
DB_USER=
DB_PASS=
DB_HOST= 
DB_PORT=

Start node server

npm start

In the project root directory go to frontend directory

cd app/frontend

Start frontend app

npm start

API Documentation

🚧 In progress... 🚧