Code Monkey home page Code Monkey logo

wxcs's Introduction

Weather Case Simulator (wxcs)

Severe weather case simulator

Quickstart

Run the following commands after cloning the project:

cd wxcs
python3 -m pipenv install -d
python3 -m pipenv shell

Then, run the following to create your app's database tables and perform the initial seeding:

flask db upgrade
flask seed
flask sync
flask run

Creating the view

CREATE VIEW v_toolsets AS 
SELECT t.*, l.name, l.href 
FROM toolsets AS t 
JOIN links AS l ON t.link_id = l.id

Going Production Mode

In your production environment, make sure the FLASK_DEBUG environment variable is unset or is set to 0. In your .env file:

FLASK_ENV=production
FLASK_DEBUG=0
DATABASE_URL="<PRODUCTION DATABASE URL>"

Shell

To open the interactive shell, run :

flask shell

By default, you will have access to the flask app.

Migrations

Whenever a database migration needs to be made. Run the following commands :

flask db migrate

This will generate a new migration script. Then run :

flask db upgrade

To apply the migration.

For a full migration command reference, run flask db --help.

Static Folder

  • Assets
    • Icons: Images & Icons for frontend
    • Logs: Appreciation logs
    • Messages: Instruction & Guidance
  • Configs: Seeds for Database setup
  • Utils: Supportive functionalities for the website (BEWARE TO MODIFY)

wxcs's People

Contributors

darekaze avatar

Stargazers

 avatar

Watchers

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