Code Monkey home page Code Monkey logo

gelert's Introduction

Gelert

Gelert Irish Wolf Hound

A Flask boiler-plate app for web-dev including within it's stack Jinja2 Templates, PostgreSQL, Python 3.5 and Vue.js or React.js.

Purpose

Creating a template app that can be deployed at the onset of projects.

References

VM setup

Upgrade the server

sudo apt-get update
sudo apt-get upgrade-dist

Begin the installation of the required packages

sudo apt-get install git
sudo apt-get install python3-dev
sudo apt-get install python3-pip

There is a need to get a virtualenv set up. I would follow this config tutorial. With the exception of one line.

sudo apt install virtualenv
virtualenv env
cd env
source bin/activate

Now within your environment use pip to install the other components

pip3 install virtualenv
pip3 install virtualenvwrapper
pip3 install pandas
pip3 install ipython
pip3 install jupyter
pip3 install flask

This should take care of a majority of the packages that you will need to develop the rest of this app's boilerplate.

Setting UP Postgres

This should server as a great walk-through of setting up user permissions. And if you're hyped on caffiene and need a video, Patrick Bailey is worth following on YouTube. Great videos.

File Structure

The file strucute for Flask is simiar to Django, but can be less structured.

mkdir ~/projects
mkdir ~/projects/flask-projects
cd projects/flask-projects
git clone <this repo>

Using rmate

If you don’t already have Sublime Text’s wonderful package manager, install it.

Hit Cmd+Shift+P, start typing “install” and select “Install Package” Start typing “rsub” and select it.

Once it’s installed, get on your terminal and do

nano ~/.ssh/config

Paste the following lines:

Host star-destroyer
    RemoteForward 52698 127.0.0.1:52698

Save (ctrl+w) and SSH into your server ssh username@star-destroyer. Install the rsub remote script:

sudo wget -O /usr/local/bin/rsub https://raw.github.com/aurora/rmate/master/rmate

Make that script executable:

sudo chmod +x /usr/local/bin/rsub

Lastly, run rsub on the remote file you want to edit locally:

rsub ~/my_project/my_file.html

and it should magically open in Sublime Text!

gelert's People

Contributors

mtbirdsall avatar

Watchers

 avatar

gelert's Issues

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.