Skip to content

sametbirol/catsanddogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catsanddogs

Social Media Webpage for cats and dogs! Technologies:FastAPI,Vuejs,Vuetify

Table of Contents

Getting Started

Follow these instructions to set up and run the project locally.

Backend Setup

  1. Navigate to the backend directory:

cd backend/src

  1. Create and activate a virtual environment (Optional, but recommended):

python -m venv venv

source venv/bin/activate

On Windows: venv\Scripts\activate

  1. Install the required dependencies:

pip install -r requirements.txt

Frontend Setup

  1. Navigate to the frontend directory:

#from root

cd frontend

#from backend/src directory

cd ../../frontend

  1. Install Node.js dependencies:

npm install

SQLAlchemy Database Setup

  1. Simply change the URL in database.py file found at backend/src directory:

your sqlalchemy databse url goes here postgresql://postgres:PASSWORD@localhost/DATABASENAME

  1. Run the SQL queries given in backend/src/sqlquery folder in order:

drop_and_create_tables_for_all_models.sql

all_data.sql

Usage

  1. Start the backend server:

#from root

cd backend/src

#from frontend directory

cd ../backend/src

uvicorn main:app --reload

  1. Start the frontend development server:

#from root

cd frontend

#from backend/src directory

cd ../../frontend

npm run dev

  1. Open your web browser and access the application at http://localhost:3000/.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •