Skip to content

Latest commit

 

History

History
102 lines (75 loc) · 1.95 KB

README.md

File metadata and controls

102 lines (75 loc) · 1.95 KB

Awards

A web application where anyone can view any of my projects or post their own.

Author

Getting Started

Setup Instructions:

Requirements

Fork this repository or clone it to your local machine running Ubuntu by using the following commands:

git clone (https://github.com/Binamin-hussein100/Awards)
  • set up a virtual environment using the following command
python3.8 -m venv --without-pip virtual

And activate it

source virtual/bin/activate
  • install the latest version of pip
curl https://bootstrap.pypa.io/get-pip.py | python
  • Install the requirements in the requirements.txt file using
pip install -r requirements.txt
  • create a .env file in your rootfolder and add the following configurations
SECRET_KEY='<random-string>'
DEBUG=True
ALLOWED_HOSTS='*'
DATABASE_URL='postgres://databaseowner:password@localhost/databasename'
  • create postgres database
CREATE DATABASE <your-database-name>
  • create a migration using the following command
python3.6 manage.py makemigrations

and migrate

python3.6 manage.py migrate
  • create an admin account
python 3.6 manage.py createsuperuser

and fill-in your credentials

  • run the application using
python3.6 manage.py runserver
  • navigate to the admin panel by typing
localhost:8000/admin

Running the tests

Run the following commands:

python3.6 manage.py tests

Deployment

View the following document in order to deploy to a live system

Technologies Used

Contacts

binamin.h.hassan14@gmail.com

License

License

MIT license © 2021 Binamin hussein