Add readme
Remove development color swatches page
This commit is contained in:
@@ -18,7 +18,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|||||||
"Shopping List",
|
"Shopping List",
|
||||||
"Saved Recipes",
|
"Saved Recipes",
|
||||||
"Your Profile",
|
"Your Profile",
|
||||||
"Color Debug"
|
// "Color Debug"
|
||||||
];
|
];
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -27,7 +27,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|||||||
const ListPage(),
|
const ListPage(),
|
||||||
const RecipesPage(),
|
const RecipesPage(),
|
||||||
const ProfilePage(),
|
const ProfilePage(),
|
||||||
const ColorPage()
|
// const ColorPage()
|
||||||
];
|
];
|
||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
@@ -58,11 +58,11 @@ class _HomeScreenState extends State<HomeScreen> {
|
|||||||
label: "Profile",
|
label: "Profile",
|
||||||
backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
|
backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
|
||||||
),
|
),
|
||||||
BottomNavigationBarItem(
|
// BottomNavigationBarItem(
|
||||||
icon: const Icon(Icons.grid_3x3),
|
// icon: const Icon(Icons.grid_3x3),
|
||||||
label: "Colors",
|
// label: "Colors",
|
||||||
backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
|
// backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
|
||||||
)
|
// )
|
||||||
],
|
],
|
||||||
currentIndex: _selectedPage,
|
currentIndex: _selectedPage,
|
||||||
onTap: (value) {
|
onTap: (value) {
|
||||||
|
|||||||
16
one_trip_api/daphne.service
Normal file
16
one_trip_api/daphne.service
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=daphne daemon
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=django
|
||||||
|
Group=www-data
|
||||||
|
Environment="DJANGO_RELEASE=True"
|
||||||
|
WorkingDirectory=/opt/django/OneTrip/one_trip_api
|
||||||
|
ExecStart=/opt/django/OneTrip/one_trip_api/venv/bin/daphne \
|
||||||
|
--u /run/daphne/daphne.sock \
|
||||||
|
one_trip_api.asgi:application
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=gunicorn daemon
|
|
||||||
Requires=gunicorn.socket
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
User=django
|
|
||||||
Group=www-data
|
|
||||||
Environment="DJANGO_RELEASE=True"
|
|
||||||
WorkingDirectory=/opt/django/OneTrip/one_trip_api
|
|
||||||
ExecStart=/opt/django/OneTrip/one_trip_api/venv/bin/gunicorn \
|
|
||||||
--access-logfile - \
|
|
||||||
--workers 3 \
|
|
||||||
--bind unix:/run/gunicorn.sock \
|
|
||||||
one_trip_api.wsgi:application
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=gunicorn socket
|
|
||||||
|
|
||||||
[Socket]
|
|
||||||
ListenStream=/run/gunicorn.sock
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=sockets.target
|
|
||||||
Binary file not shown.
BIN
planning/backend-structure.png
Normal file
BIN
planning/backend-structure.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 59 KiB |
52
readme.md
Normal file
52
readme.md
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
# One Trip
|
||||||
|
|
||||||
|
## Technologies Used
|
||||||
|
|
||||||
|
### Backend
|
||||||
|
- Django
|
||||||
|
- Django Rest Framework (REST API)
|
||||||
|
- Django Channels (WebSocket interface)
|
||||||
|
- SQLite (Only because I am not deploying this to the Play Store)
|
||||||
|
- Redis (WebSocket cache)
|
||||||
|
|
||||||
|
### Deployment
|
||||||
|
- Daphne (ASGI Application server)
|
||||||
|
- Nginx
|
||||||
|
- Ubuntu
|
||||||
|
|
||||||
|
### Frontend
|
||||||
|
- Flutter
|
||||||
|
|
||||||
|
## Pictures
|
||||||
|
|
||||||
|
### Main Menu
|
||||||
|

|
||||||
|
|
||||||
|
### Profile Page
|
||||||
|

|
||||||
|
|
||||||
|
### Search for Users
|
||||||
|

|
||||||
|
|
||||||
|
### Create, Edit, and Delete Recipes
|
||||||
|

|
||||||
|
|
||||||
|
Recipes and individual ingredients can be deleted by swiping them off of the screen
|
||||||
|
|
||||||
|
### Search for Recipes to add to Shopping List
|
||||||
|

|
||||||
|
|
||||||
|
### Delete Items from List
|
||||||
|

|
||||||
|
|
||||||
|
### Shopping List Page
|
||||||
|

|
||||||
|
|
||||||
|
### Backend Data Models
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user