Giter VIP home page Giter VIP logo

wheretoeatattongji-backend's Introduction

TJ 今天吃什么 🍜

Welcome to "TJ 今天吃什么" 🍜, a WeChat mini-program designed to help Tongji University students and nearby residents decide what to eat! You can find our frontend code here and backend code here.

Introduction

"TJ 今天吃什么" aims to solve the daily dilemma of "What to eat?" by providing personalized recommendations and detailed restaurant information within and around Tongji University. The platform supports student and merchant interactions, community discussions, and user reviews.

Features

  • User Registration and Login: Supports registration via WeChat login. 📲
  • Restaurant and Dish Management: Merchants can manage their menus, including adding, editing, and deleting dishes. 🍛
  • Personalized Recommendations: Users receive recommendations based on their preferences and browsing history. 🧑‍🍳
  • Community Interaction: Users can post, comment, like, and share their food experiences. 💬
  • Admin Controls: Admins can manage user permissions, monitor activities, and handle reports. 🔧

Installation

Frontend Setup

  1. Clone the Repository:

    git clone https://github.com/yourusername/tj-eat-frontend.git
    cd tj-eat-frontend
  2. Install Dependencies:

    npm install
  3. Run the Development Server:

    npm start
  4. Build for Production:

    npm run build

Backend Setup

  1. Clone the Repository:

    git clone https://github.com/yourusername/tj-eat-backend.git
    cd tj-eat-backend
  2. Set Up Virtual Environment:

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install Dependencies:

    pip install -r requirements.txt
  4. Database Configuration:

    • Ensure MySQL is installed and running.
    • Update the database configuration in tjeatwhat/settings.py:
      DATABASES = {
          'default': {
              'ENGINE': 'django.db.backends.mysql',
              'NAME': 'TJEatWhat',
              'USER': 'root',
              'PASSWORD': 'yourpassword',
              'HOST': 'localhost',
              'PORT': '3306',
          }
      }
  5. Run Migrations:

    python manage.py makemigrations
    python manage.py migrate
  6. Run the Server:

    python manage.py runserver

Usage

User Guide

  • Browsing Restaurants: Users can view all available restaurants and filter by categories. 🍽️
  • Viewing Dishes: Detailed pages for each dish with options to rate and review. ⭐
  • Community: Interact with other users by posting and commenting on food-related topics. 🗣️
  • Recommendations: Use the personalized or random recommendation features to discover new dishes. 🎲

Merchant Guide

  • Edit Information: Merchants can edit their restaurant's information such as name, address, and description. 🏪
  • Add Dishes: Merchants can add new dishes to their menu, including uploading images and setting prices. 🍲
  • Reply to Comments: Merchants can respond to user reviews and comments on their dishes. ✍️

Admin Guide

  • User Management: View and edit user information, manage permissions, and handle reports. 🛠️
  • Notifications: Admins can see user interactions like comments, likes, and collections. 📬

Contributing

We welcome contributions from the community! Please follow these steps:

  1. Fork the repository. 🍴
  2. Create a new branch (git checkout -b feature-branch). 🌿
  3. Make your changes and commit them (git commit -m 'Add new feature'). ✍️
  4. Push to the branch (git push origin feature-branch). 🚀
  5. Open a pull request. 🔄

License

This project is licensed under the MIT License. See the LICENSE file for details.

Thank you for using "TJ 今天吃什么"! 🍴 Enjoy your meals!

wheretoeatattongji-backend's People

Contributors

rosy-zang avatar coder-gx avatar winstonliyt avatar

Watchers

 avatar

Forkers

coder-gx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.