Jeffmusa / neighbourloop

Neighbourloop is a python app which keeps neighbours and friends up to date with what is happening in their hood.Its a loop af what happens around

Home Page:http://hoodbyjeff.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A web application where users create profile linked to a community through which they can make posts, and interact with other Users and their businesses within a community.


User Requirements

  1. Create profile and modify and access profile.
  2. Signup to a Community.
  3. View community posts on home page.
  4. Create Business posts and View social services.
  5. Search for business and their details.
  6. Create new Neigbour hoods and be the Administrator.

Models

Post

  • Properties: Title, Description, Hood FK, Post FK.

Profile

  • Properties: dp, Bio, location, Django User Relationship, Contact

Business

  • Properties: Name, Owner FK , Description, Number. Location FK

Hood

  • Properties: Name, Bio,Population

Admin Dashboard

Use django admin to create hoods to the database and manage the hoods

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/jeffmusa/neighbourloop.git && cd neighbourloop

Creating a virtual environment

* pip3 install virtualenv
* virtualenv virtual
* . 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

* chmod a+x start.sh
* ./start.sh

Contributing

Technology used

  • Python3.6
  • Django 1.11
  • Postgresql - PostgreSQL is a powerful, open source object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance. Versioning version 1.0.0
  • Heroku

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.

About

Neighbourloop is a python app which keeps neighbours and friends up to date with what is happening in their hood.Its a loop af what happens around

http://hoodbyjeff.herokuapp.com/


Languages

Language:Python 89.6%Language:CSS 5.3%Language:JavaScript 2.9%Language:HTML 1.9%Language:C 0.3%Language:Shell 0.0%