Skip to content

Lucjodet/sandbox-website

 
 

Repository files navigation

Sandbox Website

The build system is based on this repository.

Workflow:

  1. Make html structure using pug
  2. Write styling in Sass
  3. Write js in ES2015 compiled by Webpack
  4. Have an auto-refreshing browser preview using Browsersync

Collaboration guide

Members are welcome to form this repository and submit pull requests. What you need to know:

Element Source How to interact
Static pages src/*.pug Every pug file in the src/ folder becomes a page.
CSS/SASS src/css/*.scss The styles.scss is the main file that imports sub files
Javascript src/js/main.js You can add js directly or use npm style modules using ES2015

After making your local edits run the production build and push.

Opening this website locally

Run the development environment:

git clone https://github.com/actuallymentor/sandbox-website.git
npm install
npm start # This will open the preview on your browser

Any changes you make to the code will be instantly reflected in the browser due to the browsersync integration.

To make the final build version:

npm run build

The final build version is compiled to the docs/ folder.

About the member database

The member database is imported from mailchimp. You can't do this unless you have an API key to the account. If you do and want to update the members page:

npm run update

For this to work you need to have a .env file in the root of your repository filled with:

mcapikey=THE API KEY
mainlistid=THE ID OF THE MAIN LIST
mainlistname=NAME OF THE MAIN LIST

Also set the environment variables $gituser and $gittoken to your user account and a valid https token for your account.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 65.5%
  • JavaScript 23.2%
  • CSS 10.2%
  • Shell 1.1%