Project for OpenSource Programming
Crixus Fight Organizer
Alex Sturgeon Gurkirat Singh Kenneth Barclay
Crixus is a fight organizer designed for medieval fight reenactments. This will allow for users to create a custom profile for their fighter(s), add/edit/delete fighters up to a max of 4. You can buy armor and weapons in the armory, with in app currency that can be equipped to your fighters. You can earn that in game currency by sending your fighters to the arena to have them duel in single combat or team combat. The arena combat has a winners bonus which will be determined based on the salary(s) of the fighter(s) you are putting in the arena.
Typescript - Express + Typescript Database - MySQL Frontend - React.js
The following steps must be taken in order to ensure Crixus functions as intended.
Downloading Crixus
- git clone the repo onto your local machine.
- Ensure that you have MySQL plus is workbench correctly installed and running.
- Ensure that your NODE version is installed and up to date.
Client side
- Navigate to the /client folder.
- In the terminal, run 'npm install' to ensure correct dependencies are loaded.
Server side
- Navigate to the /express folder.
- In the terminal, run 'npm install' to ensure correct dependencies are loaded.
- Open MySQL Workbench and connect to a localhost server.
- Navigate to file -> Open SQL Script.
- Load the database.sql file located in /Crixus/express.
- From the MySQL Workbench, run the loaded sql script.
- Refresh "SCHEMAS" section to see newly created database.
- Navigate to Crixus/express/src/db.ts
- In the pool, change the 'user' and 'password' fields to match the username and password for your MySQL connection. (Note: DO NOT change the database name from 'crixus').
- Return to the MySQL workbench, in the crixus schema, and navigate to file -> Open SQL Script.
- load the seed.sql file located in /Crixus/express.
- From the crixus schema, run the seed.sql file. It's important that this seed file run in the crixus schema.
Running Crixus
- Navigate to Crixus/express and, in the terminal, run 'npm run dev'. The server runs on port 3000.
- While keeping the backend running, open a new git bash terminal.
- Navigate to Crixus/client and, in the terminal, run 'npm run dev'. The client runs on port 5173.
- In the browser, navigate to http://localhost:5173