Skip to content

GitWizzz/school_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation Instructions

  1. Clone the Repository:

    • First, clone the repository to your local device:

      git clone https://github.com/yourusername/school-management-api.git
      
  2. Set Up Node.js and Modules:

    • Ensure Node.js is installed on your device.

    • Install the necessary modules by running

      npm install
      
  3. Set Up MongoDB:

    • Install MongoDB on your device if not already installed.

    • Paste your MongoDB URL into the .env file:

      MONGO_URL=your_mongodb_connection_string
      
  4. Running the Application:

  5. Testing the APIs with Postman:

    • Add School API:

    • Method: POST

    • Endpoint: http://localhost:3000/api/addSchool

    • Body (in JSON format):

      {
       "name": "Oxford International School",
       "address": "Palm Beach Road, Navi Mumbai",
       "latitude": 19.0330,
       "longitude": 73.0297
       }
      
  6. Set Up MongoDB:

Releases

No releases published

Packages

No packages published