A collection of front-end patterns for The Session built with Fractal.
You’ll need to have Node installed on your local machine. It will need to be at least version four. You can download the latest stable build from the Node website.
If you haven’t already installed the Fractal command line helper on your machine, do that:
npm i @frctl/fractal -g
(If for some reason that doesn’t work, you might have to run the command with sudo
in front of it.)
If you haven’t already installed the Grunt command line helper on your machine, do that:
npm i grunt-cli -g
(Again, if there’s a problem, try using sudo
.)
Then:
- Clone this repository into a location of your choosing.
- Open the project folder in your command line tool of choice.
- Install the dependencies:
npm install
- Run the Grunt tasks with
grunt
(usegrunt watch
if you plan to change any patterns). - Run
fractal start
You should now be able to open localhost:3000 in a browser to see the pattern library.
See the Fractal documentation for more details and usage information.