Skip to content

nico-martinucci/bybo-flask

Repository files navigation

BYBO

Backend application for "Backyards By Owner" web application built with Flask

Full application deployed at: https://bybo-react-nm.surge.sh/

Front-end repository: https://github.com/nico-martinucci/bybo-react

Features

  • RESTful API for authentication, authorization, and posting/listing bookings
  • AWS S3 image upload functionality to show photos for posted listings

Setting it up

  1. Create a virtual environment and install requirements:
$ python3 -m venv venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
  1. Set up the database (PostgreSQL):
$ psql
=# CREATE DATABASE bybo;
(ctrl+D)
  1. Add a .env file with:
SECRET_KEY=(any secret key you want)
DATABASE_URL=postgresql:///bybo
  1. Run the server:
$ flask run -p 5001
  1. View at localhost:5001

Tech

  • Flask, SQLAlchemy, Bcrypt, AWS S3, pyjwt

// TODO

  • Write better error handling
  • Add tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages