Giter VIP home page Giter VIP logo

halls-of-residence-flat-finder's Introduction

halls-of-residence-flat-finder

A Flask web application that can be used to help new students find their Halls of Residence flatmates.

wakatime


Contents


Software Installation Guide

This guide will walk you through the steps to set up and run the "Halls Flatmate Finder" project on your local machine.

Prerequisites

Before you begin, ensure that you have the following installed on your system:

  • Python (version 3.6 or later) (3.10.8 recommended)
  • Git

Step 1: Clone the Repository

  1. Open your terminal or command prompt.

  2. Navigate to the directory where you want to store the project.

  3. Run the following command to clone the repository:

git clone https://github.com/corey-richardson/halls-of-residence-flat-finder.git

Step 2: Install Required Packages

  1. Navigate to the project directory:
cd halls-of-residence-flat-finder
  1. Create a virtual environment (recommended but optional):
python -m venv venv
  1. Activate the virtual environment:
  • Windows
venv\Scripts\activate
  • Linux, maxOS, GitHub Codespace
source venv/bin/activate
  1. Install required packages from requirements.txt using pip:
pip install -r requirements.txt

To update requirements, run pip freeze > requirements.txt.

  1. Run the pytest command below.
pytest -v --no-header | tee tests/results.txt

The pytest tests will run, and you will see the test output in the terminal as well as in the results.txt file in the test/ directory.

Step 3: Run the Flask Application

  1. In the project directory, you'll find a file named app.py. This is the main Flask application file.

  2. Run the application using the following command:

flask run

By default, the application should start on 127.0.0.1:5000/ in your web browser.

  1. Open your web browser and navigate to 127.0.0.1:5000/. You should see the "Halls Flatmate Finder" application running.

Step 4: Stopping the Application

  1. To stop the Flask application, go back to the terminal where the application is running and press Ctrl+C.

  2. If you used a virtual environment, you can deactivate it by running:

deactivate

You've successfully installed and run the "Halls Flatmate Finder" project on your local machine.

halls-of-residence-flat-finder's People

Contributors

corey-richardson avatar

Watchers

 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.