idpt0000

Icon

Another tips

 

Start to learn Flask + Vuejs for a new hobby project.  Just to list out the great resource below :

  • First, let’s head to one of the best tutorial online from dev.to, about how to integrate flask with vuejs.
  • When I follow the steps, I hit an error during creating the virtual environment (under python).
    Error: Command '['/some/directories/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1

    After some research, it’s quite common on debian / ubuntu.  If you hit the same, try the solution listed in this post.    Watch out for the venv version.

  • Next, go to the flask CRUD tutorial from Alicia Gilbert on Medium.
  • For moving the flask app to apache2, try this tutorial from Codementor.
  • For sqlalchemy, try this tutorial from Towards data science.

Filed under: 軟件開發,

New tips : Remote Coding using Sublime Text 3

I am trying to pick another program editor that works across platform – Mac/Win/Linux.  Sublime Text seems to be a great choice.  It’s free and speedy on Mac – at least vs. Atom.

To allow it works with remote server seamlessly, remember to setup the RemoteSubl.

The setup needs a bit time – on both server & local.  But it’s straight forward.  The download side is – you still need the terminal (local) everytime you work on remote file :

# connection with port forward 
ssh -p 22 hostname-R 52698:localhost:52698

# edit 
rmate test.py

So, it’s done ~

Filed under: 軟件開發,

Blog Stats

  • 33,307 hits

RSS 極力推介

  • An error has occurred; the feed is probably down. Try again later.