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.
-
Clone Github Repo:
git clone https://github.com/BarisDilekci/stutend-api.git cd student-api
-
In the project's root directory, initialize a
package.json
file by running the following command:npm init
-
If necessary, update dependencies in the project by running the following command:
npm update -y nodemon start
-
Open your web browser and go to localhost:3000.
-
Clone Github Repo:
git clone https://github.com/BarisDilekci/stutend-api.git cd student-api
-
In the project's root directory, initialize a
package.json
file by running the following command:npm init
-
If necessary, update dependencies in the project by running the following command:
npm update -y docker build -t student-api . docker compose up
-
Check MongoDB:
docker ps docker exec -it <mongo_container_id> mongo
-
After entering the MongoDB shell, check the database and collections:
use school show collections db.school.find().pretty()
-
Open your web browser and go to localhost:3000.
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