Skip to content

cc-pet-sitter/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

147 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mugi Backend

About the Frontend

Purpose of App

  • To help pet owners find people to watch or check on their pets while they are away

Technologies Used

  • Python
  • FastAPI
  • Tortoise ORM
  • PostgreSQL
  • Firebase

Setup

Prerequisites:

  • Python is installed
  • Poetry is installed
  • PostgreSQL is installed
  • This repo has been cloned locally

Initial Configuration

  1. Using psql, run CREATE DATABASE petsitter; to make the database

  2. Create a .env file in root directory of your local copy of this repo

  3. In your .env file, add the following three variables and assign their values as follows:

  • DATABASE_URL: Value should be the path specific to your local database (starting with postgres://)

  • FIREBASE_CREDENTIALS: Value should be the entire firebase-adminsdk .json credential file encoded in base64, as received from an existing team member

  • FRONTEND_BASE_URL: Value should be http://localhost:5173

Application Startup

  1. In terminal, run poetry install to install dependencies

  2. In terminal, run poetry run start to start the server, create the database tables into petsitter, and have them seeded with sample data

  3. The application is ready for use when see the ouput INFO: Application startup complete. in your terminal

About

The backend of Mugi, an app for seeking and providing pet-sitting services within Japan

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors