GithubHelp home page GithubHelp logo

aubit-cl-form-api's Introduction

AUBIT CL FORM NODE API

Installation

  • Step 1 : Make sure that you're already installed NODE JS on your system.
  • Step 2 : If not click the link and downloaded LTS version of Nodejs.
  • Step 3 : Open your terminal and then type
mkdir api
cd api
  • Step 4 : Type following commands to initialize the git and set remote origin(for updated package in future).
git init
git remote add origin git@github.com:Infinite-Loop-Club/aubit-cl-form-api.git
git branch -M main

Note : Make sure that you've correct rights of this repository because this is college web dev team repo. If you're not please contact web team staff admistrator.

  • Step 5 : Clone the repo by using following command.
git pull origin main

DANGER :

  1. Don't use git push command.
  2. Don't modify any files by yourself without contact mainteners even is single dot.
  • Step 7 : Get .env file from maintainer and put that file in root directory.

  • Step 8 : Type in the terminal.

npm install
npm start
  • Step 9 : In future would you like to update your local package just type in the terminal.
git pull origin <branch_name>

Tip : Would you like to start with nodemon ? ๐Ÿ˜ƒ

  • Here we go to install the nodemon gloablly in your system by using the following command.
npm i -g nodemon
  • Skip the above step if you're already done.
npm run dev

๐ŸŽ‰๐ŸŽ‰ tada ๐ŸŽ‰๐ŸŽ‰

API Reference

  1. POST - sending all form information to the server

Sample request

POST http://localhost:4000/api/apply-cl
Content-Type: application/json

{
    "arrangements": [
        {
            "date": "",
            "hour": "",
            "class": "",
            "subject": "",
            "year": ""
        }
    ],
    "basic": {
        "name": "",
        "designation": "",
        "nature_of_leave": "",
        "availed_days": "",
        "period_from": "",
        "period_to": "",
        "no_of_days": "",
        "phone_number": "",
        "country_code": "",
        "department_name": "",
        "semester_type": "",
        "purpose_description": ""
    },
    "address": {
        "line1": "",
        "line2": "",
        "city": "",
        "state": "",
        "postal_code": "",
        "country": ""
    }
}

aubit-cl-form-api's People

Contributors

mohamedjakkariya avatar krissh-the-dev avatar sank2000 avatar

Stargazers

Pranav avatar

Watchers

 avatar Pranav 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.