-
open a terminal:
Command-Spacebarto bring up Spotlight, then search for "terminal" and hitEnter
When terminal opens, click the maximize button to fullscreen it (I will call this Terminal 1 from now on) -
in your first terminal tab, start your local web server and leave it running:
cd ~/pixi_sandbox
./manage.py runserver -
open a new terminal tab and leave it open on the frontend package root:
Command-Tto create a new terminal tab (I will call this Terminal 2 from now on)
In the new terminal tab, type:
cd ~/pixi_sandbox/frontend -
open a third terminal tab and navigate to the frontend app root:
Command-tto create a new terminal tab (I will call this Terminal 3 from now on)
In the new terminal tab, type:
cd ~/pixi_sandbox/frontend/app -
Open Chrome and navigate to
localhost:8000in the url bar. You should see the main page of our app show up. -
Now you're all set up to write code and test it.
In Terminal 3, you will edithtml,jsandscssfiles in theappdirectory tree. The command to edit is:
vim <filename> -
Once you have edited a file and saved it, you can test it out. In Terminal 2, rebuild the frontend:
gulp clean-buildto clean out the old build
Control-Cto kill it once it's finished running
gulp buildto build the new frontend with your recent changes
Control-Cto kill it once it's finished running -
In Chrome, do a hard refresh with
Command-Shift-Rand you should see your changes. -
Profit!
Last active
August 29, 2015 14:27
-
-
Save galarant/192bd560bc7cde45880b to your computer and use it in GitHub Desktop.
localhost web development in OSX
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment