Skip to content

Latest commit

 

History

History
81 lines (54 loc) · 1.27 KB

File metadata and controls

81 lines (54 loc) · 1.27 KB

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.