Coder Social home page Coder Social logo

nodejs-task's Introduction

Nodejs Task

To understand the api documentation Follow the steps

  • Git git clone Start Hacking

  • Nodejs cd app

    npm install This install all the dependencies

    populate the environment variables

    npm run swagger-autogen This runs the swagger UI which can be viewed from http://localhost:8080/api-docs

Libraries Used:

  1. Casl:===> Authorization Library which provides a clean implementation of abilites of the user(admin, editor, viewer) between frontend and backend. The ability can be implemented in both the frontend and backend so that the requests to unauthorized abilites willnot be made at first place.

Requirements:

  1. Post ID should start from 1000 and be incremental.
    • I am thinking this way ==> The post ID the user gives while creating a new post should be greater than 10000

TO install the app in your machine install the following applications

  • Git git clone Start Hacking

  • Nodejs cd app

    npm install This install all the dependencies

    populate the environment variables

    npm run dev This runs tha application in dev mode

To run the app in your machine install the following applications

  • Docker docker-compose up --build which installs all the dependencies(LINUX Container,NGINX, NODEJS,etc)

To use the application. Go to browser and send a request to http://localhost which will send that request to NGINX reverse proxy which redirects to the NodeJS application running in 8080 port.

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.