This project is made to introduce people to the concept of Jamstack and Headless CMS. It is intended for professionnal worker and Information System Director.
- Create new post and assign categories to them !
- Create new categories and filter your posts by them
- Use the table of content to navigate easily through a post
Frontend part is using NextJS with Incremental Static Regeneration, it communicates with the API via GraphQL.
The backend is made with Strapi which is a simple and elegant Headless CMS, and it exposes a GraphQL endpoint allowing the front to request the data.
How to run this project :
- Run
git clone https://github.com/Kayoshi-dev/demo-forum-technique.git
- Run
yarn install
command in both directories (frontend and api) - Add an entry to the env file in the api folder and add a variable named DATABASE_URL, referencing the Heroku PostGreSQL URI
- Run
yarn develop
in the api folder and access to Strapi at http://localhost:1337 - Create a .env.local file in the frontend folder and set NEXT_PUBLIC_API_URL to http://localhost:1337/graphql
- Run
yarn dev
in the frontend folder and access NextJS at http://localhost:3000 - Enjoy !