Blog site for the Digital and Service Design Team at Sport Wales. We work out in the open; blogging about our projects and sharing resources.
The website is a static site built with Nunjucks and Tailwind, deployed on Netlify.
This code also uses gulp for some workflows.
You'll need to install several dependencies as node packages.
- Make sure you have Node JS installed on your machine. This will include the package manager npm by default.
- Install dependencies in your command line of your IDE, using npm:
npm install
This will create a node_modules directory which will be automatically added to your .gitignore for commits.
To render the HTML pages from the Nunjucks templates and perform automated tasks, you can run the 'gulp' command (note: make sure the terminal you're using for this command is the command prompt, not windows powershell)
gulp
This can be slow, however. To only run the file that renders HTML pages from Nunjucks templates, you can use gulp nunjucks
or npm start
.
This code runs the app/app.js file (as defined in package.json)
There's no need to install Tailwind as a node package as it's accessed via CDN.
The website is live and deployed