Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexander784/restaurantssql
This a Restaurant Review Project that uses SQLAlchemy to model Relationships between Customers,reviews and Restaurants.
https://github.com/alexander784/restaurantssql
engine relationships sqlalchemy sqlite3
Last synced: 2 days ago
JSON representation
This a Restaurant Review Project that uses SQLAlchemy to model Relationships between Customers,reviews and Restaurants.
- Host: GitHub
- URL: https://github.com/alexander784/restaurantssql
- Owner: alexander784
- Created: 2023-12-08T16:35:39.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-11T09:43:10.000Z (11 months ago)
- Last Synced: 2023-12-12T21:24:53.332Z (11 months ago)
- Topics: engine, relationships, sqlalchemy, sqlite3
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Restaurant Review
This a Restaurant Review Project that uses SQLAlchemy to model Relationships between Customers,reviews and Restaurants.## Topics
1. SQLAlchemy Migrations
2. SQLAlchemy Relationships
3. Class and Instance Methods
4. SQLAlchemy Querying## Description
For this Project we are working with restaurant review domain where we have three models.It demonstrates the usage of ORM to interact with a database, create relationships between entities, and perform basic operations like querying and updating data.1. Review
Defines the Review class with the methods for handling reviews and their details
2. Restaurant
Defines Restaurant class with methods foe managing restaurant information and reviews.
2. Customer
Defines customer Class with methods for managing customer information and reviews.
## Usage
1. Initialize the Database:
The application uses Sqlite in memory.
2. Run the Application:
Excute the app script to see the sample usage:
python3 app.py3. Explore the Code:
Review the classes defitions in each file. Customer.py, Review.py, Restaurant.py.## Author:
Alexander Nyaga.License
This Project is Licensed by the MIT License.