Skip to content

A simple API for the IOS Student App application, made using node.js and mongo db. This API works integrated with the Student app.

Notifications You must be signed in to change notification settings

BarisDilekci/student-api

Repository files navigation

student-api

Hello everyone,

This application was developed with node.js and used in mobile application with Swift.

It works seamlessly with the Student API that I wrote with node.js.

The project is at a very simple level, I will improve it as I learn new information.

Thank you.

Steps 1 to Run the Project

  1. Clone Github Repo:

    git clone https://github.com/BarisDilekci/stutend-api.git
    cd student-api
  2. In the project's root directory, initialize a package.json file by running the following command:

    npm init
  3. If necessary, update dependencies in the project by running the following command:

    npm update -y
    nodemon start
    
  4. Open your web browser and go to localhost:3000.

Steps 2 to Run the Project

  1. Clone Github Repo:

    git clone https://github.com/BarisDilekci/stutend-api.git
    cd student-api
  2. In the project's root directory, initialize a package.json file by running the following command:

    npm init
  3. If necessary, update dependencies in the project by running the following command:

    npm update -y
    docker build -t student-api .
    docker compose up
  4. Check MongoDB:

    docker ps
    docker exec -it <mongo_container_id> mongo
    
  5. After entering the MongoDB shell, check the database and collections:

    use school
    show collections
    db.school.find().pretty()
  6. Open your web browser and go to localhost:3000.

Path

Get all student : http://localhost:3000/students/getAllStudent
Add student     : http://localhost:3000/students/addStudent
Delete student  : http://localhost:3000/students/deleteStudent/1234567890
Update student  : http://localhost:3000/students/updateStudent/12345678901

About

A simple API for the IOS Student App application, made using node.js and mongo db. This API works integrated with the Student app.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published