{"id":25271835,"url":"https://github.com/tariqul420/server_setup","last_synced_at":"2025-04-06T07:18:39.310Z","repository":{"id":271226324,"uuid":"912752781","full_name":"tariqul420/Server_Setup","owner":"tariqul420","description":"Complete full-stack setup for Any web application, including front-end and back-end integration with MongoDB, Node.js, Express, jwt, React, and Firebase.","archived":false,"fork":false,"pushed_at":"2025-01-20T13:54:34.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T07:18:35.672Z","etag":null,"topics":["cookieparser","cors","dotenv","expressjs","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"","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/tariqul420.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":"2025-01-06T10:20:24.000Z","updated_at":"2025-03-15T12:41:36.000Z","dependencies_parsed_at":"2025-01-20T14:25:53.732Z","dependency_job_id":"35891256-7b52-48a3-a69e-f30286fdf4bb","html_url":"https://github.com/tariqul420/Server_Setup","commit_stats":null,"previous_names":["tariqul420/full-stack_server_setup","tariqul420/server_setup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tariqul420%2FServer_Setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tariqul420%2FServer_Setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tariqul420%2FServer_Setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tariqul420%2FServer_Setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tariqul420","download_url":"https://codeload.github.com/tariqul420/Server_Setup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445780,"owners_count":20939982,"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":["cookieparser","cors","dotenv","expressjs","mongodb","nodejs"],"created_at":"2025-02-12T12:36:15.907Z","updated_at":"2025-04-06T07:18:39.304Z","avatar_url":"https://github.com/tariqul420.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Full-Stack Setup Server for Any Web Application\n\nThis server is built using **Node.js**, **Express**, and **MongoDB**, with JWT-based authentication and admin role management. It's designed for full-stack web applications and includes robust middleware configurations for security and scalability.\n\n---\n\n## Features\n\n- 🛡️ **JWT Authentication**: Secure your endpoints with token-based authentication.\n- 🔑 **Admin Role Management**: Restrict specific routes to admin users only.\n- 🍪 **Cookie Handling**: Easily manage cookies for session persistence.\n- 🗂️ **MongoDB Integration**: Seamlessly store and query data from MongoDB.\n- 🌐 **CORS Configuration**: Allow cross-origin requests for specified domains.\n- 📦 **Environment Variables**: Keep sensitive data secure.\n\n---\n\n## 🔗 Repository Links\n\n- **Frontend Repository**: [_Frontend Repo_](https://github.com/tariqul420/Full-Stack_Setup.git)\n- **Backend Repository**: This repository serves as the main full-stack setup and includes the `backend` setup.\n\n---\n\n## Prerequisites\n\nBefore running the server, ensure you have the following installed:\n\n- **Node.js** (v16 or higher recommended)\n- **MongoDB** (Cloud or Local Instance)\n- **npm** (Comes with Node.js)\n\n---\n\n## Installation\n\n1. Clone the client-side repository:\n\n   ```bash\n   git clone https://github.com/tariqul420/Full-Stack_Server_Setup.git\n   cd Service-Orbit-Server\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Start the server:\n\n   ```bash\n   node index.js\n   ```\n\n   --- OR ---\n\n   \u003e **Note** Note: Ensure `nodemon` is installed globally or locally in your project. To install it globally, run:\n\n   ```bash\n   nodemon index.js\n   ```\n\n4. Open the project in a code editor:\n   ```bash\n   code .\n   ```\n5. Add the `.env` file in the root directory and include the following environment variables:\n   ```bash\n   DATABASE_USERNAME=YOUR_DATABASE_USERNAME\n   DATABASE_PASSWORD=YOUR_DATABASE_PASSWORD\n   ACCESS_TOKEN_SECRET=YOUR_ACCESS_TOKEN_SECRET\n   NODEMAILER_USER=YOUR_NODEMAILER_USER\n   NODEMAILER_PASS=YOUR_NODEMAILER_USER\n   ```\n   \u003e **Note:** Replace the `index.js` file's `your_mongo_connection_string` and the `.env` file's `YOUR_DATABASE_USERNAME`, `YOUR_DATABASE_PASSWORD`, and `YOUR_ACCESS_TOKEN_SECRET` with actual values.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftariqul420%2Fserver_setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftariqul420%2Fserver_setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftariqul420%2Fserver_setup/lists"}