PHOTOGRAM
A web application where users create profile through which they can post photos, and interact with other Users and their photos.
Ras Kwesi
BY:User Requirements
- Create profile and modify and access profile.
- Upload my pictures to ap through the profile.
- View personal pictures on Profile page.
- Follow other users as they follow you.
- Interact with pictures through likin them and commenting.
Models
Project
- Properties: Project Name, Project Information, Images(3), Profile FK, Likes, URL.
Profile
- Properties: Profile Picture, Bio, location, Django User Relationship, Contact
Vote
- Properties: Design Vote, Usability Vote, Content Vote, Creativity Vote.
Admin Dashboard
Use django admin to post photos to the database and manage the photos
Setup
Requirements
This project was created on a debian linux platform but should work on other unix based[not limited to] sytems.
- Tested on Debian Linux
- Python3
Cloning the repository
git clone https://github.com/Ras-Kwesi/ranker.git && cd ranker
Creating a virtual environment
python3 -m virtualenv virtual
source virtual/bin/activate
Installing dependencies
pip install -r requirements.txt
Prepare environmet variables
Create a .env file and add the following configutions to it
SECRET_KEY= #secret key will be added by default
DEBUG= #set to false in production
DB_NAME=#database name
DB_USER= #database user
DB_PASSWORD=#database password
DB_HOST="127.0.0.1"
MODE= # dev or prod , set to prod during production
ALLOWED_HOSTS='.localhost', '.herokuapp.com', '.127.0.0.1'
Database migrations
python manage.py migrate
Running Tests
python manage.py test
Running the server
python manage.py runserver
Contributing
- Git clone https://github.com/Ras-Kwesi/ranker.git
- Make the changes.
- Write your tests.
- If everything is OK. push your changes and make a pull request.
Deploying to heroku
Refer to this guide: deploying to heroku Set the configuration to production mode
Live Demo
The web app can be accessed from the following link: Website Ranker
Technology used
License
MIT License
Copyright(c) 2018
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.