This is the website for Loddon Social Enterprise, a Basingstoke based charity for adults with learning difficulties.
It has been built on top of NextJS, with content managed in Contentful, and hosting through Netlify.
The core focus was to replace the former paid hosted Wordpress server with a website that could run on freely available services. Beyond this the main aims are accessibility, simplicity, and speed.
Building the app for production is handled by the default Netlify Github integration.
A new build of the app will be triggered on new pushes to main
in the Github repo.
Builds will also be triggered from Contentful, via a webhook, whenever a piece of content is published or unpublished.
This project uses npm
for dependency management.
To get started with a development build, clone the repo and run;
$ npm i
The content for the pages is built from the Contentful GraphQL API. In order to query the API, you'll need to add access tokens to a .env.local
file in the root directory.
CONTENTFUL_SPACE_ID=
CONTENTFUL_ACCESS_TOKEN=
NEXT_PUBLIC_CONTENTFUL_PREVIEW_ACCESS_TOKEN=
CONTENTFUL_ENVIRONMENT=
Once you've added your env files with the correct values, you can get a development server running with
$ npm run dev