GithubHelp home page GithubHelp logo

webapp_initializer's Introduction

webapp_initializer

aka wapi

(not to be confused with with the World Association of Professional Investigators

What does it do

This tool exists to reduce the friction of starting little sideprojects Just give it an application name (no spaces) with a path to put it (relative to home, dirs don't need to exist but they can) and it generate the startercode for a Flask, React, Sqlite3 webapp. It's probably best for SPAs but you can extend the code it generates however you want

How is it used

first clone the repo wherever you like and cd into it I recomend installing in a virtual enviroment to keep things tidy.

➜  python3 -m venv env  # create a virtual enviroment called 'env'
➜  source env/bin/activate  # activate it
(env) ➜ pip install -e .  # install wapi

now so long as the enviroment is active, you can use wapi like so

wapi "<dir_relative_to_home_for_project>" "<side_project_name>"

for example:

(env) ➜  wapi "Documents/projects/landing_page" "site"

now we can deactivate the virtual enviroment for wapi and navigate to the dir for our new project

(env) ➜  deactivate
➜  cd ~/Documents/projects/landing_page

now to get the application up and running

➜  chmod +x ./bin/*
➜  ./bin/install # TODO this might be flaky
➜  source env/bin/activate
(env) ➜  ./bin/run

now we can navigate to localhost in the browser to see a page rendered by our starter application that explains how it works a little further starter page

How it works

todo

webapp_initializer's People

Contributors

whitec54 avatar

Stargazers

Dante Welch  avatar

Watchers

James Cloos 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.