{"id":30140434,"url":"https://github.com/ismail-dev-code/ema-john-pagination-server","last_synced_at":"2025-08-11T03:37:45.954Z","repository":{"id":300149525,"uuid":"1004718373","full_name":"ismail-dev-code/ema-john-pagination-server","owner":"ismail-dev-code","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-20T04:35:18.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-20T05:26:55.570Z","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/ismail-dev-code.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}},"created_at":"2025-06-19T04:37:58.000Z","updated_at":"2025-06-20T04:35:21.000Z","dependencies_parsed_at":"2025-06-20T05:37:47.612Z","dependency_job_id":null,"html_url":"https://github.com/ismail-dev-code/ema-john-pagination-server","commit_stats":null,"previous_names":["ismail-dev-code/ema-john-pagination-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ismail-dev-code/ema-john-pagination-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismail-dev-code%2Fema-john-pagination-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismail-dev-code%2Fema-john-pagination-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismail-dev-code%2Fema-john-pagination-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismail-dev-code%2Fema-john-pagination-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ismail-dev-code","download_url":"https://codeload.github.com/ismail-dev-code/ema-john-pagination-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismail-dev-code%2Fema-john-pagination-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269827166,"owners_count":24481485,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-08-11T03:37:43.195Z","updated_at":"2025-08-11T03:37:45.943Z","avatar_url":"https://github.com/ismail-dev-code.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌐 Ema-John Server\n\nThis is the backend server for the **Ema-John** e-commerce platform. It is built with **Express.js**, uses **MongoDB** for data storage, and supports **JWT authentication** and **CORS** for secure cross-origin requests.\n\n---\n\n## 🚀 Features\n\n- ⚙️ Express.js server\n- 🌍 CORS enabled for client-server communication\n- 🔐 JSON Web Token (JWT) based authentication\n- 🛢️ MongoDB for persistent data storage\n- 🔐 Environment variable support with `dotenv`\n\n---\n\n## 🧰 Tech Stack\n\n- **Runtime**: Node.js\n- **Framework**: Express.js\n- **Database**: MongoDB\n- **Authentication**: JSON Web Token (JWT)\n- **Environment Configuration**: dotenv\n\n---\n\n## 📦 Installation\n\n```bash\ngit clone https://github.com/your-username/ema-john-server.git\ncd ema-john-server\nnpm install\n```\n\n---\n\n## ▶️ Running the Server\n\nBefore running the server, create a `.env` file in the root directory with the following content:\n\n```env\nPORT=5000\nDB_URI=your_mongodb_connection_string\nACCESS_TOKEN_SECRET=your_jwt_secret\n```\n\nThen start the server:\n\n```bash\nnpm start\n```\n\nThe server will run on [http://localhost:5000](http://localhost:5000) by default.\n\n---\n\n## 📁 Project Structure\n\n```\nema-john-server/\n├── index.js\n├── .env\n├── package.json\n└── node_modules/\n```\n\n---\n\n## 📑 Dependencies\n\n- **express** `^4.21.2` – Web framework for Node.js  \n- **cors** `^2.8.5` – Middleware for enabling CORS  \n- **dotenv** `^16.5.0` – Loads environment variables from `.env`  \n- **jsonwebtoken** `^9.0.2` – JWT token creation and verification  \n- **mongodb** `^5.9.2` – MongoDB native driver for Node.js  \n\n---\n\n## 🔐 Environment Variables\n\n| Variable              | Description                          |\n|-----------------------|--------------------------------------|\n| `PORT`                | Port number to run the server        |\n| `DB_URI`              | MongoDB connection string            |\n| `ACCESS_TOKEN_SECRET` | Secret key for signing JWT tokens    |\n\n---\n\n## 📜 License\n\nThis project is for educational purposes and does not include any license by default.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fismail-dev-code%2Fema-john-pagination-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fismail-dev-code%2Fema-john-pagination-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fismail-dev-code%2Fema-john-pagination-server/lists"}