Skip to content

Kayoshi-dev/demo-forum-technique

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

demo-forum-technique

Preview of the blog, showing different article on a web page

Context

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.

Features :

  • 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

Technologies

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.

Run locally :

How to run this project :

  1. Run git clone https://github.com/Kayoshi-dev/demo-forum-technique.git
  2. Run yarn install command in both directories (frontend and api)
  3. Add an entry to the env file in the api folder and add a variable named DATABASE_URL, referencing the Heroku PostGreSQL URI
  4. Run yarn develop in the api folder and access to Strapi at http://localhost:1337
  5. Create a .env.local file in the frontend folder and set NEXT_PUBLIC_API_URL to http://localhost:1337/graphql
  6. Run yarn dev in the frontend folder and access NextJS at http://localhost:3000
  7. Enjoy !

Releases

No releases published

Packages

No packages published

Languages