Giter Site home page Giter Site logo

capstone's Introduction

Installation/Usage Guide

Installation

  • Make sure you have Python3 and Node installed on your system. If not(look up specific installation guides for your OS).
  • Use PIP to install pipenv
  • Inside the root folder of the project, run pipenv install to install Python dependencies
  • cd into 'frontend'
    • Run npm install to get the Node dependencies.
  • You will also need an OpenWeatherMap API key to run the application
    • Go to https://openweathermap.org/api and register with an email for free tier access to their API.
    • Once your account is confirmed, you can access your API key from your account page.
    • Copy the API key to your clipboard.
    • Create a file in root_directory/public called local_config.py
    • Inside that file write API_key = "<your-copied-API-key>"

Usage

  • Run pipenv shell or python -m pipenv shell to enter the virtual environment (if successful 'term-project' should be in parentheses before your shell input).
  • Open 2 terminals and make sure the pipenv environment is active in both:
    • In terminal 1:
      • cd into 'public' from the root directory
      • Run export FLASK_ENV=development to set the app in development mode
      • Run flask_run to start the backend server
    • In terminal 2:
      • cd into 'frontend'
      • Run npm run build to build the project
      • Run npm run start to start the frontend service
  • In your browser, go to 127.0.0.1:3000 to see the page

capstone's People

Contributors

abertella 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.