Giter Club home page Giter Club logo

open-api-response's Introduction

Open-API-Response

The project is decoupled into backend and frontend, following the concept of headless architecture. Thus making the frontend and backend independant of each other. Such architecture provides more flexibility to the teams.

Both the frontend and backend communicate through API's (Application Programmer Interface) where backend is responsible for wrapping all the required data at specific address and frontend is responsible to use the url to fetch and operate on the data. Sometimes communication through API require authentication and authorization, since all the API's used were open we didn't require such policy

FrontEnd

Following tech stack has been used to develop the Frontend

  1. EJS
  2. Express
  3. AJAX
  4. Vanilla JS

MVC architecture has been used for seamless design and smooth flow of data. MVC arch. defines the use of each and every module and makes the complete flow easy to understand

Important data like keys, ports, urls, etc which needs to be hidden from the outside world is stored in config.js and config.example.js is pushed with all the required key names

Following steps needs to be taken to install the frontend

  1. Clone the repository using the following command
    git clone https://github.com/komekez/Open-API-Response
    
  2. Go inside the frontend folder using
    cd /frontend
    
  3. Install the required dependencies
    npm install
    
  4. If you want to run the project in dev mode, than I have defined the project in nodemon, which automatically refreshes the server after each change
     npm run dev
    
  5. If you want to run the project in production mode, than I have defined the project in node
    npm run start
    

Backend

Backend folder name is written as api. It also follows MVC arch. for the same purposes that we have defined earlier. Backend also contains the config.js containing Port, URL, etc which needs to be hidden from the outside world.

Following tech stack has been used to develop the Backend

  1. Express
  2. Node

Following steps needs to be taken to install the frontend

  1. Clone the repository using the following command
    git clone https://github.com/komekez/Open-API-Response
    
  2. Go inside the frontend folder using
    cd /apis
    
  3. Install the required dependencies
    npm install
    
  4. If you want to run the project in dev mode, than I have defined the project in nodemon, which automatically refreshes the server after each change
     npm run dev
    
  5. If you want to run the project in production mode, than I have defined the project in node
    npm run start
    

open-api-response's People

Contributors

kaus-rai 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.