Parallel is a weekly bulletin written by Simon Singh, author of No.1 bestseller Fermat’s Last Theorem.
Every week, participating students will receive an email that contains 60 minutes of interesting, fun and challenging maths that goes beyond school maths: mystery and history, activities and oddities, puzzles and problems.
This repo contains a static website that hosts the content of each week's parallelogram. Using Firebase, students can create accounts, save their progress and see their scores.
Firstly clone the repository and enter the directory
git clone [email protected]:ParallelMaths/parallel.git
cd parallelNext you need to setup your service account information
mkdir private
touch private/service-account.json # put your service account json in hereThen you can install the node dependancies using our version of Node
nvm use # If you dont have nvm it can be installed here https://github.com/nvm-sh/nvm#installing-and-updating
npm installFinally you can start the app locally
npm startYou can access the local server on http://localhost:5000
To deploy updates to the live site, use
npm run deploy. (This requires access to the linked Firebase account.)
Adding a new parallelogram consists of three parts:
- Create a new file at /pages/<name>.mdwith the parallelogram content.
- Upload all required resources (e.g. images) to /static/resources/<name>/.
- Update /pages/pages.yamlwith the new parallelogram and the required timings.