Skip to content

dkfriend2023/beerbuddy-backend-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BeAbuddy-backend

🍻 Server-Side of BeABuddy Developed with Django



Overview

BeerBuddy is a restaurant reservation application designed to help users discover menus and make group reservations at restaurants around university campuses.


Technologies Used

  • Backend Framework: Django Rest Framework
  • Database: SQLite3
  • Deployment: AWS Lightsail
  • Server: Gunicorn, Nginx
  • HTTPS: Let's Encrypt (certificate renewal every 3 months)
    • Current Certificate Validity:
      • notBefore: Jul 12 16:12:05 2024 GMT (2024년 7월 12일 16시 12분 5초)
      • notAfter: Oct 10 16:12:04 2024 GMT (2024년 10월 10일 16시 12분 4초)

Features

  • User authentication and authorization
  • Restaurant listing and detail views
  • Menu management
  • Group reservation system
  • Search functionality for restaurants and menus
  • User information management
  • Email verification

Admin Pages


Contributors


Deployment and Maintenance Instructions

Important: Never run the server using python manage.py runserver in a production environment.

1) When modifying server code or Gunicorn script (logic part):

  1. Restart the service:
    sudo systemctl restart dkfriend.service
  2. Check the status:
    sudo systemctl status dkfriend.service
  3. View error logs:
    tail -n 100 /home/ubuntu/BEERBUDDY/error.log

2) When modifying static files or Nginx script:

  1. Restart Nginx:
    sudo systemctl restart nginx
  2. Check the status:
    sudo systemctl status nginx
  3. View error logs:
    sudo tail -n 100 /var/log/nginx/error.log

3) To view Django logs:

  • Use the following command:
    tail -n 100 /home/ubuntu/BEERBUDDY/dkfriend-backend-latest/dkfriend_back/django_debug.log

4) To renew Let's Encrypt certificates:

  • Certificates need to be renewed every 3 months. Use the following command to renew:
    sudo certbot renew
  • Verify the renewal:
    sudo systemctl status nginx

5) To check the current certificate information:

  • Use the following command to check the current certificate's validity:
    sudo openssl x509 -in /etc/letsencrypt/live/beerbuddy2023.com/fullchain.pem -noout -dates

License

This project is supported by the Workstation Project by the Institute for Higher Education Innovation at Yonsei University.

About

About 🦦 backend for beAbuddy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors