Skip to content

cynthiaoduol/Gallery

Repository files navigation

Personal Gallery

Description

This is an online platform where I display my photos for others to see.A user can click on an image to view the image details. A user can also copy an image link.

Github link

https://github.com/cynthiaoduol/Gallery.git

Link to live site

https://cynthiagallery.herokuapp.com/

Setup and installations

  • Fork the data onto your own personal repository.
  • 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.6 manage.py runserver
  • Access the live site using the local host provided

Prerequisites

  1. Python3.6

  2. virtualenv

  3. pip

Technologies used

- Python3.6
- HTML
- Bootstrap 4
- Heroku
- Postgresql
- Django 1.11

Clone the Repo and rename it to suit your needs.

git clone https://github.com/cynthiaoduol/Gallery.git

Initialize git and add the remote repository

git init
git remote add origin <your-repository-url>

Create and activate the virtual environment

python3.6 -m virtualenv virtual
source virtual/bin/activate

Setting up environment variables

Create a .env file and paste paste the following filling where appropriate:

SECRET_KEY='rdtfyguihjohucbdsjnc'
DEBUG=True
DB_NAME='tribune'
DB_USER='<your database name>'
DB_PASSWORD='<password to your database>'
DB_HOST='127.0.0.1'
MODE='dev'
ALLOWED_HOSTS='.localhost', '.herokuapp.com', '.127.0.0.1'
DISABLE_COLLECTSTATIC=1

Install dependancies

Install dependancies that will create an environment for the app to run pip install -r requirements.txt

Make and run migrations

python3.6 manage.py check
python manage.py makemigrations news
python3.6 manage.py sqlmigrate news 0001
python3.6 manage.py migrate

Run the app

python3.6 manage.py runserver

Open localhost:8000

Bugs

Known bugs

There are no known bugs at the moment

Support and contact details

Contact Cynthia Oduol for further help/support

License

MIT LICENSE

Copyright (c)2018 Cynthia Oduol

About

An online platform where I display my photos for others to see

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published