- Fork this repo and the frontend repo
- Run the this cms server
- Implement the items on Tasks section
- Submit a pull-request to both frontend and backend
6 hours
- clone repo
yarn install- Copy environment variables to .env file =
cp env.example .env - Start the server
yarn develop - Go to
http://localhost:1337, create an admin user and Proceed to tasks
git clone https://github.com/jomijournal/jomi-challenge-frontend.gityarn install- Copy environment variables to .env file =
cp env.example .env - Start the nextjs server using
yarn dev - Go to http://localhost:3000
- Creating content for front-end. the CMS server has pre-defined types and components:
HomePage, etc. Your first task is to build the content for the homepage so that the frontend can consume it and will be able to render the content. It should consist of the following:
- 2 Two-Column Blocks
- 1 HeaderBlock
- CarouselBlock
- In the front-end server, Fill-in the needed fields in the query on
homepage.graphql. Runyarn gento update the generated file (homepage.generated.tsx). - Complete components for
TwoColumnBlock,HeaderBlock,CarouselBlockso that the front-end can properly render them. . You may useHomePageSectionsComponentto select the components based on their typename. - Note: Just search for all the //TODO comments and complete them.
- After completing the the components create a pull-request of your fork, to the this repo (https://github.com/jomijournal/jomi-cms-challenge-backend) and send us a message upon completion.