Portfolio website that showcases projects, work experiences and education history using Django. Contents are customizable through the admin site. (The old site can be found here)
First, clone the repository to the machine, then active the python virtual environment
git clone https://github.com/jiachengzhang1/portfolio-web.git
source path/to/active/file/active/
Go into the repository directory, install required packages
cd /path/to/the/repository/
pip install -r requirements.txt
The application uses SQLite in development and PostgreSQL in production. Django automatically creates a SQLite database for the application, so no extra settings required for development. Use manage.py
to migrate.
python manage.py makemigrations
python manage.py migrate
Create a superuser, follow the prompts to set up the credential which is used for admin login.
python manage.py createsuperuser
To start the application,
python manage.py runserver
Now, the application is running on the localhost port 8000 http://127.0.0.1:8000
. You can create the contents through the admin page http://127.0.0.1:8000/admin
.
DigitialOcean has very good instructions on deploying Django application with Postgres, Nginx, and Gunicorn.
In addition, compile SCSS
files before run collectstatic
,
python manage.py compilescss
python manage.py collectstatic
Learn more about django-sass-processor
through their GitHub repository
- Django - The web application framework used
- django-sass-processor - Compile SASS/SCSS files on the fly
- PostgreSQL - The database used by the application (producation)
- SQLite - The database used by the application (development)
Jiacheng Zhang
This project is licensed under the MIT License - see the LICENSE.md file for details
The design of the website is inspired by jtom.me and andrewborstein.com