GithubHelp home page GithubHelp logo

scottwedge / hostel-hunter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from beattykariuki/hostel-hunter

0.0 0.0 0.0 20.82 MB

License: MIT License

Python 99.23% HTML 0.17% Shell 0.05% Mako 0.07% PowerShell 0.06% C++ 0.03% C 0.31% JavaScript 0.05% CSS 0.04%

hostel-hunter's Introduction

Hostel Hunter

Authors

Kevin Musoni, Betty Kariuki, Stacey Chebet, Gloria Givondo (29/11/2018)

Description

Hostel Hunter is an application that university students can use to search for and find accommodation near their university. The user is able to rate these hostels by providing reviews.

You can view the live link on:

User Stories

These are the behaviours that the application implenents for use by a user.

As a user, I would like:

  • To search a university.
  • To leave a review to a hostel.
  • To view hostels under searched universities.
  • To see the hostel's offered services.
  • To sign-up and log-in.

Specifications

Behaviour Input Output
Display all categories On page load List of various categiroes is displayed on landing page
Display pitch from a pitch category Click on category Redirected to a page with a list of pitches from the category
Display the pitch On page load Each pitch displays the title, content, posted by, on
Comment the pitch Comment Redirected to the sign-in page
Profile On page load The logged in user is able to view their profile-pic, bio, pitches posted and edit their profile
Edit profile Edit profile Redirects the user to a page to update their bio and upload a profile-pic

Setup / Installation Requirements

  • Web browser
  • Virtual environment
  • Flask
  • Python version 3.6

Cloning the Repo

  • In your terminal run:

      $ git clone https://github.com/beattykariuki/Hostel-Hunter.git
      $ cd Hostel-Hunter
    

Running the Application

  • Create the virtual environment

      $ sudo apt-get install python3.6 -venv
      $ python3.6 -m venv virtual
    
  • Activate virtual environment

      $ source virtual/bin/activate
    
  • Install Flask and other Modules

      $ pip install -r requirements.txt
    
  • Set up the environment variables

Create a start.sh file and paste the following. export SECRET_KEY='<secret_key>' export MAIL_USERNAME='<username>' export MAIL_PASSWORD='<password>'

  • Run the application in your terminal:

      $ chmod +x start.sh
      $ ./start.sh
    

Testing the Application

  • To run the tests for the class files and check if they function well:

      $ python3.6 manage.py tests
    

Technologies Used

  • Virtual environment
  • Flask
  • Python version 3.6
  • Flask-Bootstrap4
  • Pip
  • HTML
  • CSS
  • Heroku
  • Visual Studio Editor

Known Bugs

There are no known bugs. Contact [email protected] of any bugs.

License

The content of this site is license under the MIT license Copyright (c) 2018 Kevine, Betty, Stacey, Gloria

hostel-hunter's People

Contributors

beattykariuki avatar gege-k avatar stacychebet avatar kevinemusoni avatar scottwedge avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.