{"id":26688590,"url":"https://github.com/andreferi3/expressjs-simple-note-app-restful-api","last_synced_at":"2025-03-26T13:20:00.414Z","repository":{"id":35282705,"uuid":"192479093","full_name":"andreferi3/ExpressJS-Simple-Note-App-RESTful-API","owner":"andreferi3","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-10T19:26:38.000Z","size":92,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-03T01:19:09.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreferi3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-18T06:27:18.000Z","updated_at":"2019-06-22T07:51:52.000Z","dependencies_parsed_at":"2023-01-15T17:35:08.458Z","dependency_job_id":null,"html_url":"https://github.com/andreferi3/ExpressJS-Simple-Note-App-RESTful-API","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreferi3%2FExpressJS-Simple-Note-App-RESTful-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreferi3%2FExpressJS-Simple-Note-App-RESTful-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreferi3%2FExpressJS-Simple-Note-App-RESTful-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreferi3%2FExpressJS-Simple-Note-App-RESTful-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreferi3","download_url":"https://codeload.github.com/andreferi3/ExpressJS-Simple-Note-App-RESTful-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245659028,"owners_count":20651526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-26T13:19:59.645Z","updated_at":"2025-03-26T13:20:00.398Z","avatar_url":"https://github.com/andreferi3.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eExpressJS - Simple Note App RESTful API\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://nodejs.org/\"\u003e\n    \u003cimg alt=\"restfulapi\" title=\"Restful API\" src=\"https://cdn-images-1.medium.com/max/871/1*d2zLEjERsrs1Rzk_95QU9A.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Table of contents\n* [Introduction](#introduction)\n* [Requirements](#requirements)\n* [How to run the app ?](#how-to-run-the-app-)\n* [Set up .env file](#set-up-env-file)\n* [End Point List](#end-point-list)\n\n## Introduction\n[![Express.js](https://img.shields.io/badge/Express.js-4.x-orange.svg?style=rounded-square)](https://expressjs.com/en/starter/installing.html)\n[![Node.js](https://img.shields.io/badge/Node.js-v.10.16-green.svg?style=rounded-square)](https://nodejs.org/)\n\nHere i was built the Simple Note App which specially for backend only.\n\nExpress.js, or simply Express, is a web application framework for Node.js. [More about Express](https://en.wikipedia.org/wiki/Express.js)\n\n## Requirements\n1. node_modules\n2. Postman\n3. Web Server (ex. localhost)\n\n## How to run the app ?\n1. Open CMD or Terminal and enter to the app directory\n2. Type `npm install`\n3. Make a new file called **.env** in the root directory, set up first [here](#set-up-env-file)\n4. Turn on Web Server and MySQL can using Third-party tool like xampp, etc.\n5. Import file [simple_note_app.sql](simple_note_app.sql) to **phpmyadmin**\n6. Open Postman desktop application or Chrome web app extension that has installed before\n7. Choose HTTP Method and enter request url.(ex. localhost:3000/notes)\n8. You can see all the end point [here](#end-point-list)\n\n## Set up .env file\nOpen .env file on your favorite code editor, and copy paste this code below :\n```\nNODE_ENV=development\nPORT= // fill with your port\n\nDB_HOST=localhost\nDB_USER=root // default\nDB_PASS= // default\nDB_NAME=simple_note_app\n```\n\n## End Point List\n**1. GET**\n* `/notes`\n* `/notes/:id` (Get notes by id)\n* `/category`\n* `/category/:id` (Get category by id)\n* `/notes/category/:id` (Get notes by category id)\n* `/all-notes` (Get all notes with category name)\n* `/notes?search=note_title` (Search operation)\n* `/notes?sort=` (Sort operation) // fill with asc or desc\n* `/notes?page=` (Paging for limiting notes) // fill only with integer\n\n**2. POST**\n* `/notes`\n* `/category`\n\n**3. PATCH**\n* `/notes/:id` (Update notes by id)\n* `/category/:id` (Update category by id)\n\n**4. DELETE**\n* `/notes/:id` (Delete notes by id)\n* `/category/:id` (Delete category by id)\n\n\u003chr\u003e\n\n\u003ch3 align=\"center\"\u003eAuthor\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/andreferi3\"\u003e\n  \u003cimg alt=\"Author Andre Feri\" title=\"git author\" src=\"https://avatars0.githubusercontent.com/u/44439185?s=400\u0026u=471baa9e72545be97ae83b22a817e61c79d3be35\u0026v=4\" width=\"250\" /\u003e\n\u003c/a\u003e\n\u003cp align=\"center\"\u003e\u003cb\u003e\u003ca href=\"https://github.com/andreferi3\"\u003eAndre Feri Saputra\u003c/a\u003e\u003c/b\u003e\u003c/p\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreferi3%2Fexpressjs-simple-note-app-restful-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreferi3%2Fexpressjs-simple-note-app-restful-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreferi3%2Fexpressjs-simple-note-app-restful-api/lists"}