Social Media Webpage for cats and dogs! Technologies:FastAPI,Vuejs,Vuetify
Follow these instructions to set up and run the project locally.
- Navigate to the backend directory:
cd backend/src
- Create and activate a virtual environment (Optional, but recommended):
python -m venv venv
source venv/bin/activate
On Windows: venv\Scripts\activate
- Install the required dependencies:
pip install -r requirements.txt
- Navigate to the frontend directory:
#from root
cd frontend
#from backend/src directory
cd ../../frontend
- Install Node.js dependencies:
npm install
- Simply change the URL in database.py file found at backend/src directory:
your sqlalchemy databse url goes here postgresql://postgres:PASSWORD@localhost/DATABASENAME
- Run the SQL queries given in backend/src/sqlquery folder in order:
drop_and_create_tables_for_all_models.sql
all_data.sql
- Start the backend server:
#from root
cd backend/src
#from frontend directory
cd ../backend/src
uvicorn main:app --reload
- Start the frontend development server:
#from root
cd frontend
#from backend/src directory
cd ../../frontend
npm run dev
- Open your web browser and access the application at http://localhost:3000/.