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
- Clone the repository:
git clone https://github.com/l-velazquez/UniFood_Django.git
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
source venv/bin/activate
- Install the required packages using the following command:
pip install -r requirements.txt
- 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.
- 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/'.