{"id":18290141,"url":"https://github.com/jaay7/placementsbackend","last_synced_at":"2026-04-05T08:35:47.060Z","repository":{"id":41975136,"uuid":"476812602","full_name":"Jaay7/placementsbackend","owner":"Jaay7","description":"Managing the placements information through this application ","archived":false,"fork":false,"pushed_at":"2023-05-28T07:26:17.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T08:08:38.916Z","etag":null,"topics":["aws-ec2","django","docker-compose","graphene-django","graphql","jwt","mongodb","python"],"latest_commit_sha":null,"homepage":"https://placements-apis.onrender.com/graphql/","language":"Python","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/Jaay7.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":"2022-04-01T17:30:44.000Z","updated_at":"2023-05-28T10:06:55.000Z","dependencies_parsed_at":"2024-12-22T23:22:21.563Z","dependency_job_id":null,"html_url":"https://github.com/Jaay7/placementsbackend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jaay7/placementsbackend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaay7%2Fplacementsbackend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaay7%2Fplacementsbackend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaay7%2Fplacementsbackend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaay7%2Fplacementsbackend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jaay7","download_url":"https://codeload.github.com/Jaay7/placementsbackend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaay7%2Fplacementsbackend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31430009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T08:13:15.228Z","status":"ssl_error","status_checked_at":"2026-04-05T08:13:11.839Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aws-ec2","django","docker-compose","graphene-django","graphql","jwt","mongodb","python"],"created_at":"2024-11-05T14:09:38.108Z","updated_at":"2026-04-05T08:35:47.040Z","avatar_url":"https://github.com/Jaay7.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI/CD Docker - Django](https://github.com/Jaay7/placementsbackend/actions/workflows/main.yml/badge.svg)](https://github.com/Jaay7/placementsbackend/actions/workflows/main.yml)\n\n# Placements Backend\n\n\u003cb style=\"font-size:18px;\"\u003eCreated using Django, GraphQL, and using MongoDB as database.\u003c/b\u003e\n\n## Accessing the application\n\n#### 1. Clone the application.\n\n#### 2. In the root directory create a virtual environment.\n\n```sh\npip install virtualenv\n```\n```sh\npython -m venv venv\n```\n\n#### 3. Now install the packages required for our project which are available in requirements.txt\n\n```sh\npip install -r requirements.txt\n```\n\n#### 4. Create a .env file \nNaviagte to the placementsbackend folder where settings.py is available\n\nCreate a .env file\n```\nMONGODB_URI=\u003cYOUR_MONGODB_URI\u003e\n```\n\n#### 5. To run the application\n\n```sh\npython manage.py makemigrations\n```\n\n```sh\npython manage.py migrate\n```\n\n```sh\npython manage.py runserver\n```\n\n#### 6. Testing the application\n\nOpen postman application to test our endpoint \n\nhttp://127.0.0.1:8080/graphql/\n\nMake sure your request is set to POST method.\n\n- Register new user\n\n```\nmutation {\n  registerUser(\n    email: \"\u003cyour_email\u003e\",\n    username: \"\u003cyour_username\u003e\",\n    password: \"\u003cyour_password\u003e\",\n    fullName: \"\u003cyour_fullName\u003e\n  ) {\n    user {\n      id\n      email\n      username\n      fullName\n    }\n    token\n  }\n}\n```\n\n- Login user\n\n```\nmutation {\n  login(\n    username: \"\u003cyour_username\u003e\",\n    password: \"\u003cyour_password\u003e\"\n  ) {\n    token\n    payload\n  }\n}\n```\n\n- Getting the loggedIn user based on token.\n  \n  In the headers tab give:\n  \n  KEY as Authorization\n\n  VALUES as JWT \u003cyour_token\u003e\n\n  Make sure there is space between JWT and token\n```\nquery me {\n  me {\n    id\n    email\n    username\n    fullName\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaay7%2Fplacementsbackend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaay7%2Fplacementsbackend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaay7%2Fplacementsbackend/lists"}