Skip to content

Commit ee0db10

Browse files
author
MicBun
committed
finalize and make it live
1 parent 3a48885 commit ee0db10

File tree

4 files changed

+173
-156
lines changed

4 files changed

+173
-156
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Final-Project-Michael-Buntarman-PBD-Sanbercode-Batch-40
22
Python Backend Development (Batch 40) Final Project
3+
4+
This project is live at http://micbun.pythonanywhere.com
5+
Feel free to check it out!

app.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
from flask import Flask
33
from flask_jwt_extended import JWTManager
44
from flask_restx import Api
5-
# from flask_restplus import Api
65
from flask_sqlalchemy import SQLAlchemy
76

8-
97
env = dotenv_values(".env")
108

119

@@ -27,11 +25,6 @@ class Config:
2725
order_space = rest_app.namespace('Order', description="CRUD Order")
2826
database_space = rest_app.namespace('Database', description="Database")
2927
user_space = rest_app.namespace('Users', description="CRUD User")
30-
# rest_app.add_namespace(user_space)
31-
# rest_app.add_namespace(product_space)
32-
# rest_app.add_namespace(order_space)
33-
# rest_app.add_namespace(database_space)
34-
# rest_app.add_namespace(main_space)
3528
db = SQLAlchemy(app)
3629
jwt = JWTManager(app)
3730
from router import *

models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from dotenv import dotenv_values
2-
31
import app
42

53
db = app.db
@@ -35,6 +33,7 @@ def to_dict(self):
3533
"password": self.password
3634
}
3735

36+
3837
class Product(db.Model):
3938
__tablename__ = 'products'
4039
id = db.Column(db.Integer, primary_key=True, autoincrement=True)

0 commit comments

Comments
 (0)