Skip to content

Latest commit

 

History

History
79 lines (65 loc) · 2.25 KB

README.md

File metadata and controls

79 lines (65 loc) · 2.25 KB

AWWARDS_CLONE

This is a replica of the awwwards application . The clone is developed by Django framework and PostgreSQL database.

Table of contents

App screenshot

Awward-clone Awward-clone

Features

  • Django 4.0+
  • Profile and Projects API endpoints.
  • Procfile for running gunicorn with New Relic's Python agent.
  • PostgreSQL database support with psycopg2.

Technologies used

  • Back-end Framework: Django (Version 4.0.3)
  • Front-end Framework: Bootstrap
  • Language: Python (Version 3.8.10)

How to install

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

Environment variables

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

Behavior Driven Development

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

Author