FoodDance, a web application where foodies, present and future food lovers can communicate witheach other, andshare their experiences on cooking.
On the one hand,FoodDanceprovides a free community environment for users to search and post their favorite recipes. Users can also comment and rate the recipes they have tried. On the other hand, the platform will recommend recipes to users according to their identity and on-demand, and users can add the recipes they want to try into their wish lists. The highest-rated recipes will be displayed to provide a reference for users.
In this project, we use sqlite 3 as database, use Django to implement the back-end service, and use html5, CSS, javascript, bootstrap 5 to process front-end render.
└─ foodDance_web
├─ fooddance
│ └─ templatetags
├─ foodDance_web
├─ media
│ ├─ avatars
│ └─ recipes
├─ static
│ ├─ css
│ ├─ images
│ └─ js
└─ templates
└─ fooddance
This project uses python and django
- Python 3.7.5
- Django 2.1.5
**We recommend to use Anaconda Command Prompt.
conda create -n fooddance python=3.7.5
conda activate fooddance
Open project, and run cmd, execute the following command:
pip install -r requirements.txt
cd foodDance_web
Creating and migrating the database:
python manage.py makemigrations fooddance
python manage.py migrate
Import test data, run population script to do that, execute command:
python population_script.py
Start up the server:
python manage.py runserver
Project is disploy on the http://127.0.0.1:8000 (default port is 8000)
In fooddance_web file, run test command.
python manage.py test fooddance
- Today's Top Show today's most views recipes.
- Recommendation Show the top-9-comment recipes, click recipes can visit the detail of every recipe.
name | ||
---|---|---|
1 | Zumin Li | [email protected] |
2 | Linyue Zhang | [email protected] |
3 | Keyi Miao | [email protected] |
4 | Qiaochu Xu | [email protected] |