Sports Information and Analytics Full Stack React Application. The deployed website is currently down since I ran out of free Railway trial.
- React
- TypeScript
- PostgreSQL
- Node
- Express
- Vite
- Clone / Fork project
- Install PostgreSQL
- Set up an account / database in pgAdmin or the CLI (These will be used in a .env file in the backend)
- Navigate to the backend folder and install required dependencies using
npm i - Copy
.env.exampleto a new file.env. Then fill in the values for each variable based on how you set up pgAdmin - (If you want to generate new sample data): run
node /database/generate_sample_data.js. Check outsample_data.sqlto see new changes - Run
node server.js - If you have to run end the server and re-run
node server.js, make sure to comment out the entire sample_data.sql file to prevent any errors
- Navigate to sports_page folder and install required dependencies using
npm i - Run
npm run dev - If it doesn't automatically open the page in a browser, open the link vite provides through terminal
- Clone / Fork project
- Install PostgreSQL
- Set up an account / database in pgAdmin or the CLI (These will be used in a .env file in the backend)
- Use VSCodes' Search tool(top left widget - magnify glass) to find and replace all instances of
localhost:3001withlocalhost:5001 - Swap port variable in
server.jsto correct port(5001)
- Navigate to the backend folder and install required dependencies using
npm i - Copy
.env.exampleto a new file.env. Then fill in the values for each variable based on how you set up pgAdmin - (If you want to generate new sample data): run
node /database/generate_sample_data.js. Check outsample_data.sqlto see new changes - Run
node server.js - If it doesn't automatically open the page in a browser, open the link vite provides through terminal
- Navigate to sports_page folder and install required dependencies using
npm i - Run
npm run dev - If it doesn't automatically open the page in a browser, open the link vite provides through terminal