Our application is a social platform that connects item owners (lenders) with renters, enabling peer-to-peer rental of personal belongingsβlike Airbnb, but for everyday items. Users can log in to browse a wide range of available items, rent what they need, and complete payments directly through the app. Owners can list items they'd like to lend and also rent from others, creating a flexible, two-way marketplace.
Docs: Google Docs
Built with Svelte, GO, PostgresSQL.
βββ backend
β βββ main.go
| βββ go.mod
| βββ go.sum
| βββ .env
β βββ db // for DB connections
β β βββ db.go.go
β β βββ queries.sql
β β βββ schema.sql // DB schema
β βββ handlers // API core handlers
β β βββ handlers.go
| βββ middleware // auth, CORS
β β βββ auth.go
β β βββ cors.go
β βββ models
β | βββ model_functions.go // DB functions
β | βββ ... // Models for our application
| |
βββ frontend //svelte app
βββ data // mock data generation
βββ backup // application's data
cd frontend
npm i # install dependencies
npm run dev
npm run build # production build
npm run preview # preview production build
Check localhost:5173/
Create a .env
file in /backend
:
POSTGRES_URL=postgres://<username>:<password>@<host>:<port>/<dbname>?sslmode=require
Run the program
cd backend
go mod tidy # install dependencies
go run main.go
Check localhost:8080/
cd data
python -m venv venv
source venv/bin/activate # activate virtual env
pip install -r requirements.txt
python script.py
Mock data should be generated in /fake_data_csv
data/
πΏ