{"id":21963882,"url":"https://github.com/abhinavrajesh/resource-listing-server","last_synced_at":"2026-04-07T07:34:32.022Z","repository":{"id":115263935,"uuid":"332782130","full_name":"AbhinavRajesh/Resource-Listing-Server","owner":"AbhinavRajesh","description":"Resource sharing website where users can share their curated list of learning resources [Server]","archived":false,"fork":false,"pushed_at":"2021-02-06T14:28:20.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T14:24:56.872Z","etag":null,"topics":["expressjs","mongodb","mongoose","nodejs","rest-api","server"],"latest_commit_sha":null,"homepage":"https://resource-listing.azurewebsites.net/","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/AbhinavRajesh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-01-25T14:56:12.000Z","updated_at":"2021-04-28T07:27:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"104946de-2de5-4523-9742-656f87f245c7","html_url":"https://github.com/AbhinavRajesh/Resource-Listing-Server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AbhinavRajesh/Resource-Listing-Server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhinavRajesh%2FResource-Listing-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhinavRajesh%2FResource-Listing-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhinavRajesh%2FResource-Listing-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhinavRajesh%2FResource-Listing-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbhinavRajesh","download_url":"https://codeload.github.com/AbhinavRajesh/Resource-Listing-Server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhinavRajesh%2FResource-Listing-Server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31504897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["expressjs","mongodb","mongoose","nodejs","rest-api","server"],"created_at":"2024-11-29T11:58:57.860Z","updated_at":"2026-04-07T07:34:31.996Z","avatar_url":"https://github.com/AbhinavRajesh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Resource Listing Server\n\n\u003cp\u003eCode for server hosted at \u003ca href=\"https://resource-listing.azurewebsites.net\" target=\"_blank\"\u003ehttps://resource-listing.azurewebsites.net\u003c/a\u003e using \u003ca href=\"https://azure.microsoft.com/\" target=\"_blank\"\u003eAzure\u003c/a\u003e built with \u003ca href=\"https://expressjs.com/\" target=\"_blank\"\u003eExpressJS Framework\u003c/a\u003e on \u003ca href=\"https://nodejs.org/en/\" target=\"_blank\"\u003eNodeJS\u003ca/\u003e\u003c/p\u003e\n\n\u003cp\u003eServer for \u003ca href=\"https://resourcelisting.netlify.app\" target=\"_blank\"\u003eAspire\u003c/a\u003e, A resource sharing website where users can share their curated list of learning resources\u003c/p\u003e\n\n\u003cp\u003e\u003ca href=\"https://github.com/AbhinavRajesh/Resource-Listing-Client\" target=\"_blank\" \u003eCode for Client\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://resourcelisting.netlify.app\" target=\"_blank\"\u003eClient\u003c/a\u003e\u003c/p\u003e\n\n## 🛠 Installation \u0026 Set Up\n\n\u003cb\u003eRequired Node version: 14 or higher\u003c/b\u003e\n\n1. Cloning the repository\n\n   ```sh\n   git clone https://github.com/AbhinavRajesh/Resource-Listing-Server.git\n   ```\n\n2. Going into the directory and installing dependencies\n\n   Using Yarn\n   ```sh\n   cd Resource-Listing-Server\n   yarn\n   ```\n   \n   Using npm\n   ```sh\n   cd Resource-Listing-Server\n   npm i\n   ```\n\n3. Start the development server\n\n    Using Yarn\n   ```sh\n   yarn run dev\n   ```\n   \n   Using npm\n   ```sh\n   npm run dev\n   ```\n   \n4. Server would be up and running at \u003ca href=\"http://localhost:5000\"\u003ehttp://localhost:5000\u003c/a\u003e\n   \n   \n## 📦 Routes\n\n#### AUTH ROUTES\n\n1.  ```http \n    GET /api/v1/auth/google\n    ```\n    **Route for Google Auth. On success returns the `token` as url parameter to client else redirects back to google signin**\n    \n2.  ```http\n    GET /api/v1/user\n    ```\n    **Route for getting the user details. `token` is required to get the user Details**\n    | PARAMETERS | TYPE     | DESCRIPTION |\n    | :---       | :---     | :---        |\n    | `token` | `Header` | **Required.** |\n    \n3.  ```http \n    POST /api/v1/email/signup \n    ```\n    **Route for Email Signup On success returns the `token` as url parameter to client else redirects back to email signin**\n    | PARAMETERS | TYPE     | DESCRIPTION |\n    | :---       | :---     | :---        |\n    | `displayName` | `string` | **Required.** |\n    | `firstName` | `string` | **Required.** |\n    | `lastName` | `string` | **Required.** |\n    | `email` | `string` | **Required.** |\n    | `password` | `string` | **Required. Password is hashed and stored in the DB using `bcrypt`** |\n    \n    \n4.  ```http\n    POST /api/v1/email/login\n    ```\n    **Route for Email Login On success returns the `token` as url parameter to client else redirects back to email signin**\n    | PARAMETERS | TYPE     | DESCRIPTION |\n    | :---       | :---     | :---        |\n    | `email` | `string` | **Required.** |\n    | `password` | `string` | **Required.** |\n\n\n\n#### API ROUTES\n\n**All the routes require `token` sent as Header with the `request`**\n\n\n1.  ```http \n    GET /api/v1/posts\n    ```\n    **Returns all the latest posts**\n2.  ```http \n    GET /api/v1/posts/:searchTag   \n    ```\n    **Returns all the posts with matching `searchTag`**\n    | PARAMETERS | TYPE     | DESCRIPTION |\n    | :---       | :---     | :---        |\n    | `searchTag`| `string` | **Required.** Searches DB for matching posts |\n\n3.  ```http \n    GET /api/v1/post/toggleSaved/:postId\n    ```\n    **Returns a message letting know if the post was saved or not**\n    | PARAMETERS | TYPE     | DESCRIPTION |\n    | :---       | :---     | :---        |\n    | `postId`| `string` | **Required.** Adds the `postId` to the array of saved posts in the User model|\n\n4.  ```http   \n    GET /api/v1/user/posts\n    ```\n    **Returns all the posts sent by the user `Self Post`**\n\n5.  ```http \n    GET /api/v1/account/:userId\n    ```\n    **Returns all the posts sent by the user `Other User's post`**\n    | PARAMETERS | TYPE     | DESCRIPTION |\n    | :---       | :---     | :---        |\n    | `userId`| `string` | **Required.** Searches the DB for the posts of the user with `_id` : `userid`|\n    \n6.  ```http \n    GET /api/v1/savedPost\n    ```\n    **Returns all the saved posts of the user**\n    \n7.  ```http \n    POST /api/v1/post/add\n    ```\n    **Returns the updated token**\n    | PARAMETERS | TYPE     | DESCRIPTION |\n    | :---       | :---     | :---        |\n    | `title`    | `string` | **Required.** Saves the `title` as `title` in the DB for the Post Model|\n    | `resource` | `string` | **Required.** Saves the `resource` as `description` in the DB for the Post Model|\n    | `tags`    | `array` | **Required.** Saves the `tags` as `tags` and also as `tags_lower` [ Saves the tags in lowercase for finding posts related to a topic ] in the DB for the Post Model|\n    \n    \n**A Star ⭐ to the repository would be highly appreciated 😁** \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhinavrajesh%2Fresource-listing-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhinavrajesh%2Fresource-listing-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhinavrajesh%2Fresource-listing-server/lists"}