Skip to content

notprowler/CTP-Hack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Summary

  • Frontend: React-based web application showcasing a feed interface.
  • Backend: Flask-based API to handle feed data and other operations.

Prerequisites

  • Node.js and npm are installed for the frontend.
  • Python 3.10.10 is installed for the backend.

Frontend (React in Javascript)

  1. cd into the frontend repo
cd frontend
  1. Install node dependencies
npm install
  1. Run the frontend
npm run dev

Backend (Flask in Python)

  1. cd into the backend directory
cd backend
  1. Set up a virtual environment (if you haven't already):
python3 -m venv venv
  1. Activate the virtual environment:
  • Linux/MacOS:
source venv/bin/activate
  • Windows:
venv\Scripts\activate
  1. Install libraries:
pip install -r requirements.txt

Optionally, use this to add libraries to requirements.txt:

pip freeze > requirements.txt
  1. Start the Flask development server:
flask --app server run

Or run this for auto-reloading when code changes (Recommended):

flask --app server run --debug

By default, the backend will be available at http://localhost:5000.

About

Cuny Tech Prep Hackathon - Best use of Data Science/Visualization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.8%
  • Python 9.6%
  • Other 0.6%