Armando Del Rio porfolio for web based apps, React, Django, Python, Java website built using Django 4, Django REST Framework 3, React 18, and Material UI 5.
- Prerequisites
- Installation
- Running the application
- Adding data to the application
- Copyright and License
Install the following prerequisites:
- Python 3.8-3.11
This project uses Django v4.2.4. For Django to work, you must install a correct version of Python on your machine. More information here. - Node.js
- Visual Studio Code
From the root directory, run:
cd backend
python -m venv venv
From the backend directory, run:
On macOS:
source venv/bin/activate
On Windows:
venv\scripts\activate
From the backend directory, run:
pip install --cache-dir .pip_cache -r requirements.txt
From the backend directory, run:
python manage.py makemigrations
python manage.py migrate
From the backend directory, run:
python manage.py createsuperuser
When prompted, enter a username, email, and password.
From the root directory, run:
cd frontend
npm install
To run the application, you need to have both the backend and the frontend up and running.
From the backend directory, run:
python manage.py check --deploy # Check if ready to run
python manage.py collectstatic # Collects static files
python manage.py runserver # Enables app to run on browser
From the frontend directory, run:
npm start
Go to http://localhost:3000/ to view the application.
Add data through Django Admin.
Go to http://127.0.0.1:8000/admin to access the Django Admin interface and sign in using the admin credentials.