Yeah, one more app with recipes. Then why did I create it?
Reason 1. It's going to help you in making a decision. Almost every morning we have to come up with breakfast ideas before we’ve even had coffee. Sometimes it can feel like a really tall order and annoying. Using this app you can just save all your recipes, and every time you need an idea the app will choose it for you.
Reason 2. I need to practice Python.
-
You must have Docker installed.
-
Clone the project to your local machine:
git clone [email protected]:lenorium/what_to_cook.git
or download zip if you don't have Git installed.
-
Open terminal, go to the project directory:
cd <path>/what_to_cook
-
Run Docker container:
docker-compose up --build -d
-
When container is up, open your web browser and go to http://0.0.0.0:8000/ or http://127.0.0.1:8000/ (which is most probably if you use Safari). If everything is ok, you'll see text 'It works!'.
-
To see full list of available HTTP methods and try them open docs: http://0.0.0.0:8000/docs (or http://127.0.0.1:8000/docs).
Additionally
Also you can see structure of DB tables using PGAdmin:
- Open http://0.0.0.0:8001/ (or http://127.0.0.1:8001/) in your browser.
- Enter login and password. You can find it in
.env
file. - When dashboard is opened press
Add New Server
button. - As the name of server you can enter anything you like.
- In the tab
Connection
in theHost
field inputdb
. Password is the same as in step 2. - If everything is ok, you'll see a list of DBs and 'recipes' DB among them.