Skip to content

semanurbilada/portfolio_plus

Repository files navigation

icon

Portfolio Plus | Django CV Page

#️⃣ TO DO

  • Frontend: customizations
  • Database models: all datas
  • Set up: docker environment
  • Frontend: bootstrap template
  • Set up: django project & github repo

#️⃣ Purpose

Welcome to my Portfolio Website! Here is the Django CV page project for the technical lecture of Advanced Web Programming. Main purpose is the learning and practicing;
- Django in backend applications,
- Docker container and enviroment,
- Bootstrap which is a framework of CSS.
Take a look at my learning journey for Django & Bootstrap & Docker; and feel free to send feedback!

#️⃣ Preview

Screenshot 2024-05-24 at 2 38 18 AM Screenshot 2024-05-24 at 2 38 26 AM Screenshot 2024-05-24 at 2 38 39 AM Screenshot 2024-05-24 at 2 38 46 AM Screenshot 2024-05-24 at 2 38 57 AM Screenshot 2024-05-24 at 2 39 03 AM

#️⃣ How To Run?

  1. Virtual environment setup:
python3 -m venv environment_name
  1. To activate the virtual environment (Windows):
environment_name/Scripts/activate
  1. To activate the virtual environment (Linux / MacOS):
source environment_name/bin/activate
  1. Install dependencies:
pip install -r requirements.txt

or

pip3 install -r requirements.txt
  1. Run:
python manage.py runserver

or

python3 manage.py runserver
  • Note: For deactivating python enviroment:
deactivate

or in MacOS / Linux:

source deactivate

#️⃣ Docker Scripts:

  1. Build and run the app:
docker-compose up --build

or

docker compose up --build
  1. Build and run the app in the background:
docker-compose up --build -d
  1. See current runs with container IDs:
docker ps
  1. Stop the run:
docker stop <container_id>
  1. Stop and remove the run:
docker-compose stop <container_id>
  1. About migrations:
  • Create a new migration from models;
docker-compose run app python3 manage.py makemigrations 
  • Apply migrations to database;
docker-compose run app python3 manage.py migrate
  1. Create superuser with docker:
docker-compose run app python3 manage.py createsuperuser