Code Monkey home page Code Monkey logo

parking-lot-management's Introduction

Software Engineering project: Parking Lot

Set up environment:

```
Dependencies:
    >> sudo apt-get install build-essential libssl-dev libffi-dev python-dev
    >> pip install -r requirements.txt
```

Run the app:

NOTE: You have to be in the home folder (ParkingLotServer_APP for server and ParkingLotClient_APP for client) of the repository to execute these commands
--> To run the server
    >> export FLASK_APP=ParkingLotServer/__init__.py
    >> export PYTHONPATH=$(pwd)
    >> flask run --host="0.0.0.0" --port="8080"
    >> Access at http://127.0.0.1:5000/auth/login

--> To run the client
    >> export FLASK_APP=ParkingLotClient/__init__.py
    >> export PYTHONPATH=$(pwd)
    >> flask run --host="0.0.0.0" --port="5000"
    >> Access at http://127.0.0.1:5000/auth/login

=============================================================

Database commands:

```
NOTE: While running any of these commads, you have to be in the home folder and must have run the export command above.
1. To initialize the database run:
        >> flask db init
    NOTE: You do not have to initializa the database now. (Pinkesh has done it).
          You just have to run the below commands whenever you make changes in model

2. After you make changes in the models.py file or add a new one run the following commands:
        >> flask db migrate
        >> flask db upgrade
This will create migrations and update them on the server.
NOTE: Do not keep the app running while running this command

parking-lot-management's People

Contributors

pinkeshbadjatiya avatar nramrakhiyani avatar radhaagr avatar agarwalgaurav993 avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar

parking-lot-management's Issues

Running it on MAc

while running this command flask run --host="0.0.0.0" --port="8080" got this error```

  • Serving Flask-SocketIO app "flask_app"
  • Forcing debug mode off
    Usage: flask run [OPTIONS]

Error: Could not import "flask_app".

do u have a fix?

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.