Skip to content

Infinite-Loop-Club/aubit-cl-form-api

Repository files navigation

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": ""
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published