Giter VIP home page Giter VIP logo

pa1450-2021's Introduction

PA1450

Skeleton application


Quick Start

You're currently viewing the branch skeleton. This branch contains a skeleton example project with the basics to get you started.

To use the application, you will first need to make sure that your environment supports it. Please see the virtual-lab-environment branch for a complete and tested environment for use with this project.

When you're ready to download and start the application, follow these steps:

# Clone the repository
git clone https://github.com/AlexGustafsson/PA1450-2021 PA1450
# Enter the repository and checkout this branch
cd PA1450
git checkout skeleton

# Install dependencies
make install

# Start the application by using the wrapper script
./application.sh

To run a greeting command use:

./application.sh greet --user "Joe Doe"

To serve the same functionality as a web-based API, use:

./application.sh serve

The server will now be available on http://localhost:8080.

Contributing

Quick Start

First start by downloading the repository:

# Clone the repository
git clone https://github.com/AlexGustafsson/PA1450-2021 PA1450

You can now enter the directory and install the dependencies:

# Enter the repository and checkout this branch
cd PA1450
git checkout skeleton

# Install dependencies
make install

You're now ready to develop the application.

Project structure

The main entrypoint of the application is the application/main.py file. It contains the command line argument parser which is in charge of interfacing with the user in order to start the application.

Each available command is located within the application/commands directory. Each command file defines a create_parser method which sets up the command's command line argument parser.

Lastly, the www directory contains the static web files used for the demonstrational website.

pa1450-2021's People

Contributors

alexgustafsson avatar hanaahmeed avatar jimber110 avatar kynkel avatar rinas234 avatar

Forkers

rinas234

pa1450-2021's Issues

IsADirectoryError: [Errno 21] Is a directory: './PA1450/PA1450-2021/application

Commit: 236444c
Issue when running python3 main.py serve in directory application

Output

 * Serving Flask app "commands.serve" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
 * Restarting with stat
Traceback (most recent call last):
  File "/home/jimmyb/Documents/Courses/PA1450/PA1450-2021/application/main.py", line 36, in <module>
    main()
  File "/home/jimmyb/Documents/Courses/PA1450/PA1450-2021/application/main.py", line 14, in main
    importer.downloadData()
  File "/home/jimmyb/Documents/Courses/PA1450/PA1450-2021/application/importer.py", line 129, in downloadData
    os.remove(os.path.join(myDir, f))
IsADirectoryError: [Errno 21] Is a directory: '/home/jimmyb/Documents/Courses/PA1450/PA1450-2021/application/covid_case_data/COVID-19-master'

System information
OS: Manjaro Linux x86_64

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.