Skip to content

The SCSS and PHP Starter Boilerplate. Originally created for our students, but free for all.

License

Notifications You must be signed in to change notification settings

learningtheweb/SavePoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SavePoint™

Originally created for our students, but free for all.

SavePoint™ is a very simple front-end starter boilerplate that we created to introduce a few core concepts to our students:

  1. PHP includes and basic PHP syntax.
  2. SCSS basic syntax and compiling with a third party app.
  3. The power of creating your own boilerplate and not having to start from scratch every time you work on a new project.

Wait, what's a boilerplate?

A boilerplate is basically a starting point.

It's the save point in your favourite video game just past the tutorial, so you don't have to keep repeating the tutorial every time you start the game from scratch. It's why we called it SavePoint™.

A boilerplate stops you from having to write the same old boring code over and over, and gets you straight to the fun stuff.

A front-end boilerplate like this one usually includes stuff like a CSS reset, a grid to make things quicker to position, and some starter HTML that you'll usually use on every project.

If you're one for reading theory, Wikipedia is the place to go to read more about boilerplate code.

Features

  • Baked in normalize.css to straighten out all those browser inconsistencies. We're using this instead of a CSS reset, but the results are similar.
  • A modified version of Simple Grid (hat tip to CSS Tricks) is provided as an excellent example of a grid, but it's easy to swap out.
  • A simple and fully commented SCSS structure to help you understand how it all works.
  • A simple and fully commented PHP include structure with example pages to help you understand how PHP includes work. This knowledge is useful to learn as it can easily be transferred to popular CMSs like WordPress.
  • CSS Comb to keep your CSS tidy and standardised.

Requirements to make the magic happen

  1. You'll need a local server environment to get this working. We recommend Valet, but if that gets a little heavy, try MAMP.
  2. You'll need an SCSS compiler. Koala is great and it's free. CodeKit is lovely too.
  3. This should go without saying, but you'll need a text editor. We like Atom, but you wouldn't go wrong if you used Sublime Text, Brackets or PhpStorm either. Visual Studio Code from Microsoft is also surprisingly nice.

Recommendations

Structure

We like keeping things neat, so you'll find everything you need in the assets folder.

index.php
- assets
    - img (your folder for images)
    - inc (where the PHP includes are for headers, footers and sidebars)
    - scss (your core SCSS - the bit you edit)
    - css (where your SCSS will get compiled to - don't mess with this folder)

Roadmap

  1. Add in some JavaScript magic so you can learn some JS basics.
  2. Create examples that use SavePoint™ so you can see how it works.
  3. Develop further versions that introduce more complicated topics like task runners and advanced git commands like branches.

About

The SCSS and PHP Starter Boilerplate. Originally created for our students, but free for all.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published