Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Ariadne Management

Prerequisites

  1. Install Node.js
  2. Install Golang
  3. Setup a PSQL database

To install the project

  1. Clone github repo git clone https://github.com/Gonzaga-CPSC-321-Fall-2024/final-project-Frolower.git
  2. Navigate into the folder cd final-project-Frolower

To run frontend

  1. Navigate into the frontend folder cd frontend
  2. Navigate into the React folder cd ariadne management
  3. Download dependencies npm install
  4. Run npm start to start the frontend on http://localhost:3000

To run backend

  1. Navigate into the backend folder cd backend
  2. Download dependencies go mod download
  3. Create a .env file with a following structure
    DB_USER=your_user
    DB_PASSWORD=your_password
    DB_HOST=your_host
    DB_PORT=your_port
    DB_NAME=your_db_name

    JWT_SECRET= A string of symbold e.g., sruhguosfeifosjifg

  4. Navigate into cmd folder cd cmd
  5. Run go run main.go to start the backend app on http://localhost:8080

To setup databse

All required tables are located in backend/migration folder

To use the app

Currently, the frontend is broken, so postman is highly recommended

  1. In postman type http://localhost:8080/signup to create an account
  2. In body choose RAW JSON option and create a file with such configuration
    {
    "username": "username",
    "email": "test@gmail.com",
    "first_name": "Name",
    "last_name": "Last Name",
    "password": "password"
    }
    and submit it, you will receive JWT you must use to access all other routes
  3. When testing other routes in Header add Authorization key and JWT as value
  4. All working routes are located in main.go

About

A web app for a racing team management

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages