{"id":29651946,"url":"https://github.com/siddharthsinghkumar/jobboard-api","last_synced_at":"2025-07-22T06:02:46.125Z","repository":{"id":304345363,"uuid":"1018509078","full_name":"Siddharthsinghkumar/jobboard-api","owner":"Siddharthsinghkumar","description":"Django REST API for managing job listings, built with PostgreSQL and Redis caching. Includes CRUD and stats endpoints.","archived":false,"fork":false,"pushed_at":"2025-07-12T12:44:40.000Z","size":18996,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-12T14:51:04.039Z","etag":null,"topics":["api-development","backend","django","django-rest-framework","job-api","job-board","job-crawler","job-listings","open-source","postgresql","python","redis","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Siddharthsinghkumar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-07-12T12:15:29.000Z","updated_at":"2025-07-12T12:53:25.000Z","dependencies_parsed_at":"2025-07-12T14:51:05.425Z","dependency_job_id":"6c945022-d302-4ff6-ba4d-545282861bb4","html_url":"https://github.com/Siddharthsinghkumar/jobboard-api","commit_stats":null,"previous_names":["siddharthsinghkumar/jobboard-api"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Siddharthsinghkumar/jobboard-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddharthsinghkumar%2Fjobboard-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddharthsinghkumar%2Fjobboard-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddharthsinghkumar%2Fjobboard-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddharthsinghkumar%2Fjobboard-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Siddharthsinghkumar","download_url":"https://codeload.github.com/Siddharthsinghkumar/jobboard-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddharthsinghkumar%2Fjobboard-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266437358,"owners_count":23928227,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["api-development","backend","django","django-rest-framework","job-api","job-board","job-crawler","job-listings","open-source","postgresql","python","redis","rest-api"],"created_at":"2025-07-22T06:01:07.098Z","updated_at":"2025-07-22T06:02:46.090Z","avatar_url":"https://github.com/Siddharthsinghkumar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JobBoard API\n\nA backend REST API for managing job listings, built with **Django**, **PostgreSQL**, and **Redis**.  \nIncludes CRUD operations and a stats endpoint with caching support.\n\n## 🚀 Features\n\n- Create, view, update, and delete job listings (`/api/jobs/`)\n- View total job count (`/api/stats/`) with Redis caching\n- Built with Django REST Framework\n- PostgreSQL database\n- Redis cache integration\n\n## 📦 Tech Stack\n\n- Django 5.2.4\n- Django REST Framework\n- PostgreSQL\n- Redis\n- Docker (optional for deployment)\n\n## 🛠️ Setup Instructions\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/Siddharthsinghkumar/jobboard-api.git\ncd jobboard-api\n```\n\n### 2. Create a virtual environment\n\n```bash\npython3 -m venv venv\nsource venv/bin/activate\n```\n\n### 3. Install dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n### 4. Setup PostgreSQL\n\nCreate a PostgreSQL user and database:\n\n```sql\nCREATE DATABASE jobdb;\nCREATE USER jobuser WITH PASSWORD 'jobpass';\nALTER ROLE jobuser SET client_encoding TO 'utf8';\nALTER ROLE jobuser SET default_transaction_isolation TO 'read committed';\nALTER ROLE jobuser SET timezone TO 'UTC';\nGRANT ALL PRIVILEGES ON DATABASE jobdb TO jobuser;\nGRANT ALL ON SCHEMA public TO jobuser;\nALTER SCHEMA public OWNER TO jobuser;\nALTER DATABASE jobdb OWNER TO jobuser;\n```\n\nUpdate `jobboard/settings.py`:\n\n```python\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.postgresql',\n        'NAME': 'jobdb',\n        'USER': 'jobuser',\n        'PASSWORD': 'jobpass',\n        'HOST': 'localhost',\n        'PORT': '5432',\n    }\n}\n```\n\n### 5. Start Redis\n\n```bash\nsudo apt install redis-server\nsudo systemctl enable redis\nsudo systemctl start redis\n```\n\n### 6. Run migrations\n\n```bash\npython manage.py makemigrations\npython manage.py migrate\n```\n\n### 7. Run the development server\n\n```bash\npython manage.py runserver\n```\n\nVisit `http://127.0.0.1:8000/api/jobs/` to see the API.\n\n## 📬 API Endpoints\n\n| Method | Endpoint       | Description             |\n|--------|----------------|-------------------------|\n| GET    | /api/jobs/     | List all jobs           |\n| POST   | /api/jobs/     | Create a new job        |\n| GET    | /api/jobs/\u003cid\u003e | Retrieve job details    |\n| PUT    | /api/jobs/\u003cid\u003e | Update a job            |\n| DELETE | /api/jobs/\u003cid\u003e | Delete a job            |\n| GET    | /api/stats/    | Get total jobs count    |\n\n## 📄 License\n\nMIT License. Free for personal and educational use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddharthsinghkumar%2Fjobboard-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiddharthsinghkumar%2Fjobboard-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddharthsinghkumar%2Fjobboard-api/lists"}