This codebase is the completed code for an article that covers how to build a web application with Starlette, MongoDB and Twilio. The app you will build is called MongoBnB. The app is a an AirBnB style application that allows users to view bookings and make reservations. Read the article to find out how and why.
- Python 3+
- MongoDB. Try MongoDB Atlas for free. You can use code ADO200 for a $200 credit.
- Twilio
- Clone the repo
- Navigate to the
mongobnb
directory. - Install dependencies
- Run
uvicorn app:app
to start the local development server. - Update the
{YOUR-CONNECTION-STRING}
string in themiddleware.py
file - Ensure the
client['{DATABASE-NAME}']
string in themiddleware.py
file matches the database name you wish to use.
Navigate to localhost:8000
to see your application in action.