Skip to content

Kabilan-1616/TCM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Full Stack Project: FastAPI + React + PostgreSQL

This project is a full-stack application using FastAPI for the backend, React for the frontend, and PostgreSQL for the database.

Setup Instructions

Follow these steps to get the project running locally.


1. Database Setup (PostgreSQL)

  1. Make sure you have PostgreSQL installed and running.
  2. Create a new database for this project in pgAdmin or your terminal.
  3. Configure the Connection:
    • Go to the backend/ folder (or where your python files are).
    • Locate the database.py file.
    • Update the SQLALCHEMY_DATABASE_URL inside that file with your own username, password, and database name.

2. Backend Setup (FastAPI)

Open a terminal and navigate to your backend folder:

cd backend

python -m venv venv
venv\Scripts\activate

pip install -r requirements.txt

uvicorn main:app --reload

3. Frontend Setup (React)

Open a new terminal window and navigate to your frontend folder:

npm install

npm run dev

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors