Skip to content

l-velazquez/UniFood_Django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django API consumer frontend

Description:

This is a Django web app the consumes an API created in C# using ASP.NET Core. The API is a simple CRUD API for managing food items, places and universities as well as users. The frontend is a simple web app that allows users to view, add, update, and delete food items.

Setting up development environment for Django API consumer frontend.

Live demo: UniFood

Setup

  1. Clone the repository:
git clone https://github.com/l-velazquez/UniFood_Django.git
  1. Create a virtual environment:
python -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate
  1. Install the required packages using the following command:
pip install -r requirements.txt
  1. Copy example environment file:
cp .env_example .env

Edit any of the information that .env requires. If deploying to production, make sure to change the values inside of the .env file.

  1. Run the Django server:
cd UniFood # Change to the project directory
python manage.py migrate # Create the database to store session data
python manage.py runserver # Run the server on localhost port 8000

The server will run on 'http://localhost:8000/'.

About

Using Django for frontend API consumer - CCOM 4995

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published