{"id":21407470,"url":"https://github.com/palashmon/mevn-auth-api","last_synced_at":"2025-07-14T00:33:59.101Z","repository":{"id":85745934,"uuid":"267017026","full_name":"palashmon/mevn-auth-api","owner":"palashmon","description":"Learning to create a simple RESTful API for Authentication using Node.js + Express + MongoDB","archived":false,"fork":false,"pushed_at":"2024-04-11T16:08:12.000Z","size":26,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-11T19:06:51.416Z","etag":null,"topics":["api","expressjs","learning-by-doing","mongodb","nodejs","rest-api"],"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/palashmon.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}},"created_at":"2020-05-26T10:48:52.000Z","updated_at":"2024-02-27T05:11:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"7290b87d-e337-4bfa-b47c-024da539ec75","html_url":"https://github.com/palashmon/mevn-auth-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palashmon%2Fmevn-auth-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palashmon%2Fmevn-auth-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palashmon%2Fmevn-auth-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palashmon%2Fmevn-auth-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/palashmon","download_url":"https://codeload.github.com/palashmon/mevn-auth-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225934431,"owners_count":17547737,"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":["api","expressjs","learning-by-doing","mongodb","nodejs","rest-api"],"created_at":"2024-11-22T16:52:45.209Z","updated_at":"2024-11-22T16:52:45.803Z","avatar_url":"https://github.com/palashmon.png","language":"JavaScript","readme":"# mevn-auth-api\n\nLearning to create a simple RESTful API for Authentication using Node.js + Express + MongoDB\n\n## Getting started\n\nThis is a basic API skeleton written in JavaScript ES2015. Very useful to building a RESTful web APIs for our front-end platforms like Angular, Reactjs, etc.\n\nThis project will run on **NodeJs** using **MongoDB** as database. The code structure easy as any beginner can also adopt the flow and start building an API.\n\n## Software Requirements\n\n- Node.js **8+**\n- MongoDB **3.6+** (Recommended **4+**)\n\n## How to install\n\n### Using Git (recommended)\n\n1.  Clone the project from github. Change \"myproject\" to your project name.\n\n```bash\ngit clone https://github.com/palashmon/mevn-auth-api.git ./myproject\n```\n\n### Install npm dependencies after installing\n\n```bash\ncd myproject\nnpm install\n```\n\n### Setting up environments\n\n1.  You will find a file named `.env.example` on root directory of project.\n2.  Create a new file by copying and pasting the file and then renaming it to just `.env`\n    ```bash\n    cp .env.example .env\n    ```\n3.  The file `.env` is already ignored, so you never commit your credentials.\n\n## How to run\n\n### Running API server locally\n\n```bash\nnpm run dev\n```\n\n### Creating new models\n\nIf you need to add more models to the project just create a new file in `/models/` and use them in the controllers.\n\n### Creating new routes\n\nIf you need to add more routes to the project just create a new file in `/routes/` and add it in `/routes/api.js` it will be loaded dynamically.\n\n### Creating new controllers\n\nIf you need to add more controllers to the project just create a new file in `/controllers/` and use them in the routes.\n\n## Current Routes\n\n- `api/users/register` - Register the User\n- `api/users/login` - Signing in the User\n- `api/users/profile` - Return the User's data\n- `api/users/logout` - Remove the req.user property and clear the login session (if any)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalashmon%2Fmevn-auth-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalashmon%2Fmevn-auth-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalashmon%2Fmevn-auth-api/lists"}