{"id":22455103,"url":"https://github.com/aditya1or0/express-authentication","last_synced_at":"2025-07-10T22:42:43.497Z","repository":{"id":263438935,"uuid":"890414232","full_name":"Aditya1or0/express-authentication","owner":"Aditya1or0","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-18T16:10:26.000Z","size":303,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T13:17:08.113Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"EJS","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/Aditya1or0.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}},"created_at":"2024-11-18T14:26:17.000Z","updated_at":"2024-11-18T16:10:29.000Z","dependencies_parsed_at":"2024-11-19T04:54:42.507Z","dependency_job_id":null,"html_url":"https://github.com/Aditya1or0/express-authentication","commit_stats":null,"previous_names":["aditya1or0/express-auth-authorization","aditya1or0/express-authentication"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aditya1or0%2Fexpress-authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aditya1or0%2Fexpress-authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aditya1or0%2Fexpress-authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aditya1or0%2Fexpress-authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aditya1or0","download_url":"https://codeload.github.com/Aditya1or0/express-authentication/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245850363,"owners_count":20682647,"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":"2024-12-06T07:10:08.111Z","updated_at":"2025-03-27T13:17:13.924Z","avatar_url":"https://github.com/Aditya1or0.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# Authentication \u0026 Profile Management System\n\nA simple full-stack web application built using **Node.js**, **Express.js**, **MongoDB** . This project provides user authentication (login and signup) and includes a profile management section where users can post notes, upload profile images, and like posts.\n\n## Features\n\n- **User Authentication (Login/Signup)**: \n  - User registration with email, password, and basic details.\n  - Login with email and password.\n  - Session management using **JWT** (JSON Web Tokens) to authenticate users.\n  \n- **Profile Section**:\n  - Users can view their profile and upload a profile image using **Multer**.\n  - Users can create, edit, and delete posts (notes) on their profile page.\n  - Users can like and unlike posts.\n\n## Technologies Used\n\n- **Node.js**: Backend JavaScript runtime environment.\n- **Express.js**: Web framework for Node.js to handle routing and middleware.\n- **MongoDB**: NoSQL database for storing user data and posts.\n- **Mongoose**: ODM (Object Data Modeling) library for MongoDB and Node.js.\n- **EJS**: Embedded JavaScript templating engine for rendering dynamic HTML views.\n- **Multer**: Middleware for handling file uploads (used for profile image uploads).\n- **JWT**: JSON Web Token used for session management and user authentication.\n\n## Installation\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/Aditya1or0/express-auth-authorization.git\n   cd express-auth-authorization\n   ```\n\n2. **Install dependencies**:\n   Make sure you have **Node.js** and **npm** installed. Then run the following command:\n   ```bash\n   npm install\n   ```\n\n3. **Create a `.env` file**:\n   Add your environment variables for the database connection and JWT secret. Create a `.env` file in the root of the project and add the following:\n   ```env\n   MONGO_URI=mongodb://your_mongodb_connection_string\n   JWT_SECRET=your_jwt_secret_key\n   COOKIE_SECRET=your_cookie_secret_key\n   ```\n\n4. **Run the application**:\n   Start the development server:\n   ```bash\n   npm start\n   ```\n\n   The app should now be running at `http://localhost:3000`.\n\n## Usage\n\n### Registration\n\n1. Navigate to the **signup** page by clicking the **Create Account** button on the login page.\n2. Enter your details (email, password, name, etc.) and click **Create Account**.\n3. You will be redirected to the **login** page where you can log in with your newly created credentials.\n\n### Login\n\n1. After registering, log in using your email and password.\n2. Once logged in, you will be redirected to your **profile page**.\n\n### Profile Page\n\n1. **Post a Note**: On the profile page, you can create a new post by typing in the content and submitting it.\n2. **Upload Profile Image**: You can upload a profile image by selecting a file and submitting the form.\n3. **Edit Post**: Click on a post to edit its content and save the changes.\n4. **Like Post**: You can like a post by clicking on the \"Like\" button. If you've already liked the post, you can unlike it.\n\n### Logout\n\n- To log out, click the **Logout** button in the profile section. You will be redirected to the login page.\n\n\n\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faditya1or0%2Fexpress-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faditya1or0%2Fexpress-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faditya1or0%2Fexpress-authentication/lists"}