Author: Kiptoo Rotich
The application allows users to post their projects by descripting what the project is about, the title, the technologies used and a screen shot of the subject. Moreover, viewers can review the project and also give a rating.
As a user of the web application you will be able to:
- Sign up and log in
- Post projects
- View posted projects
- Rate a project
- Edit your profile
- Consume API
- Review project
- Clone Project to your machine
- Activate a virtual environment on terminal:
source virtual/bin/activate
- Install all the requirements found in requirements file.
- On your terminal run
python3.8 manage.py runserver
- Access the live site using the local host provided
- Create your superuser account
python manage.py createsuperuser
inside virtual environment. - Add data from admin dashboard
https://awards27.herokuapp.com/api/projects/
- python3.8
- virtual environment
- pip
- postgresql
git clone `https://github.com/kiptoo-rotich/Awards`
git init
git remote add origin <your-repository-url>
python3.8 -m virtualenv virtual
source virtual/bin/activate
Create a .env
file and paste paste the following filling where appropriate:
SECRET_KEY = 'your secret key'
DEBUG=True
DB_NAME='gallery'
DB_USER='<your database name>'
DB_PASSWORD='<password to your database>'
DB_HOST='127.0.0.1'
MODE='dev'
ALLOWED_HOSTS='*'
DISABLE_COLLECTSTATIC=1
Install dependancies that will create an environment for the app to run
pip install -r requirements.txt
python3.8 manage.py check
python manage.py makemigrations news
python3.8 manage.py sqlmigrate news 0001
python3.8 manage.py migrate
python3.8 manage.py runserver
Open localhost:8000
python manage.py test projects
- Python3.8
- Django==3.2.5
- Postgresql
- Boostrap
- HTML
- CSS