mehdi-mirzaie78 / iPortfolio

Bootstrap Portfolio Resume Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iPortfolio

iPortfolio

Technologies

Python Django DjangoREST JavaScript jQuery Docker Nginx Postgres SQLite HTML5 Bootstrap

Main Source

iPortfolio

Demo

iPortfolio_demo.mp4

How to run?

Prerequisites

Create a .env file inside src/config and paste this content and modify it based on your project:

SECRET_KEY=<YOUR_SECRET_KEY>
DEBUG=False
ALLOWED_HOSTS=*
POSTGRES_ENGINE=django.db.backends.postgresql
POSTGRES_DB=<YOUR_DATABASE_NAME>
POSTGRES_USER=<YOUR_DATABASE_USER>
POSTGRES_PASSWORD=<YOUR_DATABASE_PASSWORD>
POSTGRES_HOST=db
POSTGRES_PORT=5432
CORS_ALLOWED_ORIGINS=http://localhost http://0.0.0.0
CSRF_TRUSTED_ORIGINS=<https://*.your_domain.com> http://0.0.0.0
SUPERUSER_USERNAME=<YOUR_SUPERUSER_USERNAME>
SUPERUSER_PASSWORD=<YOUR_SUPERUSER_PASSWORD>
SUPERUSER_EMAIL=<YOUR_SUPERUSER_EMAIL>

1. Using Docker

  1. Install docker and docker compose
  2. In directory that docker-compose.yml exists run:
docker-compose up --build -d
  1. For stopping server run:
docker-compose down

2. Using Makefile

  1. Install make.
  2. Clone the project.
  3. Create .env file in src/config path.
  4. Modifiy .env file based on your database information.
  5. Create a virtual environment python -m venv venv.
  6. Activate the environment source venv/bin/activate
  7. In the root directory of project cd to src and run:
make all
  1. Create a superuser with specified SUPERUSER_USERNAME & SUPERUSER_PASSWORD info in .env file:
make createsuperuser
  1. Run server:
make run

Enter information:

  1. Open up your browser in localhost:80/admin.
  2. Use your credentials to login and add all of your information.

About

Bootstrap Portfolio Resume Project

License:MIT License


Languages

Language:Python 33.2%Language:HTML 26.4%Language:CSS 25.8%Language:JavaScript 13.2%Language:Makefile 1.0%Language:Dockerfile 0.3%