A custom Squarespace website for Washington Leadership Academy.
This project is being designed and developed in the open. Follow along and see our progress on this Waffle board.
To get started, you'll need node.js, gulp-cli, and node-squarespace-server installed.
- Clone this repo.
- Run
npm install
to install dependencies. - Run
cp config.js.example config.js
to make your own copy ofconfig.js
. Updatesiteurl
with the url of your own squarespace site, ie:https://mysite.squarespace.com
- Run
gulp
. This will build your site in/public
and start upgulp watch
. - In a new terminal window,
cd public
. Runsqs server
to start the server. The default port islocalhost:5050
. (You'll need to enter your squarespace credentials in the browser the first time around.) - Make all your changes in
/src
. Gulp will watch for and build any changes you make to/public
. If you use the LiveReload chrome extension, your site will reload automatically with your changes.
cd public
, thengit init
to initialize a new git repository in/public
.- Add your squarespace git repo:
git remote add origin https://{{mysite}}.squarespace.com/template.git
where{{mysite}}
is your squarespace subdomain.
- Run
gulp build:deploy
to build your site with revisioned assets. cd public
and git add/commit all the changes, then push:git push origin master
. (The first time you may need togit push -f origin master
and enter your squarespace credentials.)