GithubHelp home page GithubHelp logo

ihub_assessment's Introduction

IHUB Data Assessment - Task 1: NodeJs Service For Ghost Blog Engine


Requirements

  • node.js version 18.12.1

Installation/Setup

  • go to folder /ghost_server and run:

    npm install ghost-cli@latest -g
    ghost install local //only for a fresh installation
    ghost start
    
    • This installs the ghost-cli and starts the already existing ghost local server.
    • The ghost blog engine will be up and running at port 2368.
    • Admin panel is at http.//localhost:2369/ghost/admin.
    • NOTE: If you want to start with fresh installation of ghost, run ghost install local before ghost start.
      • Then go through the setup and populate it manually with some blog posts.
      • Go to settings/integrations and add a custom integration, copy the content_api key and update it in /.env file in the root folder.
      • Go through https://ghost.org/docs/install/local/ for any help.
    • To stop the ghost server, run ghost stop.
  • go to the folder / and run:

    npm install
    npm run start
    
    • This will start the node service on port 3000, connected to the ghost blog engine.
    • The .env file has information about the ghost server.
  • go to the folder /client_app and run:

    npm install
    npm run dev
    
    • This will start the react.js client app on port 5173 which will demonstrate the usage of our newly created service.
    • The .env file has information about the node.js server.

Node service

React Client

  • Implemented a sample client app which fully utilizes the above created node service.

  • Styled with tailwindcss and used react-router-dom.

  • Used axios for network calls.

  • Search functionlaity is optimized by debouncing the input.

Client.Demo.mp4

ihub_assessment's People

Contributors

abhishek28069 avatar

Watchers

 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.