Up next

Autoplay

Create a local development server for Python apps with Vagrant, VirtualBox, Salt and Python3

0 Views • 10/30/24
Share
Embed
121gamers
121gamers
14 Subscribers
14

Create a local development server for Python apps with Vagrant, VirtualBox, Salt and Python3.

GitHub Code: https://github.com/LondonAppDe....v/video-tutorial-pyt

Before getting started, here are the requirements to install locally:
Git-SCM: https://git-scm.com/
VirtualBox: https://www.virtualbox.org/
Vagrant: https://www.vagrantup.com/

In this video I'm going to show you how to make a local development server for Python applications using VirtualBox and Vagrant.

So I've created a Vagrant box which I'm going to show you how to clone so that you can get up and running with a local Python development server in a matter of minutes.

00:00 Introduction
00:31 Install VirtualBox from virtualbox.org https://www.virtualbox.org/
00:46 Next install Vagrant https://www.vagrantup.com/
00:51 Install git https://git-scm.com/
01:23 Introduction to the base project we’ll be using called video-tutorial-Python-DRF-intro https://github.com/LondonAppDe....v/video-tutorial-pyt
01:55 Start by cloning the base project
02:10 Go to terminal or command prompt and change to a directory where you’ll want to keep your project files
02:23 Change directory using the CD command and then type git clone and then paste the URL of the repository there.
02:59 To launch server head into the deploy file and type vagrant up and enter.
03:46 From deploy folder type vagrant up to run your server
04:26 Open the project files in your favorite text editor
04:36 Type vagrant up to build a server to the specifications defined in that Vagrant file.
04:57 Type vagrant SSH to connect to your local development server.
06:31 Inside the vagrant.configure statement we define the box.
07:31 Type a local host port 8000 to map to development server.
08:34 Create a new file called HelloWorld.py
09:41 Use a salt provisioner, saltstack to define what you want installed on your server
10:37 Because the salt provisioner uses git, do this manual shell command to install Python git
12:01 Server is set up and we created our hello world file.
12:13 Install virtual env wrapper
14:36 Intro to Installing packages in our virtual environment

Let me know how you get on. If you have any questions at all then please feel free to leave them in the comments and thanks a lot for watching.

Cheers.

Check out my tutorials on http://www.londonappdeveloper.com/

Learn how to build a backend using Python & Django REST Framework: https://www.udemy.com/build-yo....ur-own-backend-using

Show more
0 Comments sort Sort By
Facebook Comments

Up next

Autoplay