Skip to content

Instantly share code, notes, and snippets.

@BbsonLin
Last active June 4, 2018 01:35
Show Gist options
  • Save BbsonLin/b9a7c5c66f3a780d4ba03c67745283ef to your computer and use it in GitHub Desktop.
Save BbsonLin/b9a7c5c66f3a780d4ba03c67745283ef to your computer and use it in GitHub Desktop.
Backend System Develop Setup (Flask + Vuejs)

Backend Setup

Using the pipenv for a clean Python environment

1. Install pipenv

$ sudo apt-get install python3-pip
$ sudo pip3 install pipenv

2. Install python packages

$ cd flask_test
$ pipenv install requests

3. Run the pipenv shell

$ pipenv shell

4. More options

https://docs.pipenv.org/

Pipenv is the new and official tool please use it

Frontend Setup

Using nodejs 8.x and yarn for building Vuejs project

1. Install Nodejs 8.x

$ sudo apt-get install python-software-properties curl
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt-get install nodejs

2. Install Yarn

$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
$ sudo apt-get update && sudo apt-get install yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment