GithubHelp home page GithubHelp logo

evil-developer / jomi-cms-challenge-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jomijournal/jomi-cms-challenge-backend

13.0 0.0 0.0 212 KB

Code Challenge for JOMI web developers.

Shell 1.15% JavaScript 98.85%

jomi-cms-challenge-backend's Introduction

๐Ÿš€ Welcome to JOMI Code Challenge

Instructions

  1. Fork this repo and the frontend repo
  2. Run the this cms server
  3. Implement the items on Tasks section
  4. Submit a pull-request to both frontend and backend

Deadline

6 hours

Running the backend cms server

  1. clone repo
  2. yarn install
  3. Copy environment variables to .env file = cp env.example .env
  4. Start the server yarn develop
  5. Go to http://localhost:1337, create an admin user and Proceed to tasks

Running the Nextjs server

  1. git clone https://github.com/jomijournal/jomi-challenge-frontend.git
  2. yarn install
  3. Copy environment variables to .env file = cp env.example .env
  4. Start the nextjs server using yarn dev
  5. Go to http://localhost:3000

Tasks

Backend

  1. 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

Front-end

  1. In the front-end server, Fill-in the needed fields in the query on homepage.graphql. Run yarn gen to update the generated file (homepage.generated.tsx).
  2. Complete components for TwoColumnBlock , HeaderBlock, CarouselBlock so that the front-end can properly render them. . You may use HomePageSectionsComponent to select the components based on their typename.
  3. Note: Just search for all the //TODO comments and complete them.
  4. 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.

Mockup of the final output

Header Block

image

Two Column Block

image image

Carousel Block

image

jomi-cms-challenge-backend's People

Contributors

jmarioste avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.