This is a replica of the awwwards application . The clone is developed by Django framework and PostgreSQL database.
- Features
- How to install
- Emvironment variables
- Technology Used
- Behaviour Driven Development
- Authors Info
- Django 4.0+
- Profile and Projects API endpoints.
- Procfile for running gunicorn with New Relic's Python agent.
- PostgreSQL database support with psycopg2.
- Back-end Framework: Django (Version 4.0.3)
- Front-end Framework: Bootstrap
- Language: Python (Version 3.8.10)
Clone this repo, run:
git clone https://github.com/John-Kimani/awwwards_clone_django.git
Install the required pip in virtual environment, Refer to requirements.txt. Run:
#Install all dependecies
$ pip install -r requirements.txt
Remember to connect to a database and create migrations
# Make databases and make migrations
$ python manage.py makemigrations
$ python manage.py migrate
Create django superuser then run server in development
$ python manage.py createsuperuser
#4. Running the application
$ python3 manage.py runserver
These are common between environments. The ENVIRONMENT
variable loads the correct settings, possible values are: DEVELOPMENT
, STAGING
, PRODUCTION
.
ENVIRONMENT='DEVELOPMENT'
DJANGO_SECRET_KEY='you-will-never-guess'
DJANGO_DEBUG='True'
DB_NAME=DB_NAME
DB_USER=DB_OWNER
DB_PASSWORD=DB_PASSWORD
DB_HOST=*
CLOUDINARY_CLOUD_NAME=CLOUDINARY_NAME
CLOUDINARY_API_KEY=CLOUDINARY_API
CLOUDINARY_API_SECRET=CLOUDINARY_SECRET
Behaviour | Input | Output |
---|---|---|
Home page | Displays my favourite projects on home page | Users are able to view projects from available categories |
Project Images on click | Users could view a specific projects larger view modes |
- Design and developed by: John Kimani