Code Monkey home page Code Monkey logo

lj-connect-backend's Introduction

๐Ÿ’ซ About Me:

Full Stack Developer
Competitive Programmer
Learning DevOps

๐ŸŒ Socials:

LinkedIn Stack Overflow X

๐Ÿ’ป Tech Stack:

C C++ React NodeJS Express.js MongoDB React Router Redux Webpack HTML5 CSS3 JavaScript TypeScript TailwindCSS MUI Ant-Design Vite NPM Python Django DjangoREST FastAPI Postman Shell Script Docker GitHub Actions Jenkins Kubernetes AWS Oracle YAML Netlify Linode Vercel Vultr Bootstrap Bun Next JS Pug Go Nginx AmazonDynamoDB MySQL Postgres Redis Figma Matplotlib NumPy Pandas Git GitHub Arduino ESLint

๐Ÿ“Š GitHub Stats:



๐Ÿ” Top Contributed Repo


lj-connect-backend's People

Contributors

dependabot[bot] avatar harshdobariya79 avatar shrey-patel-07 avatar vishwaraval247 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vishwaraval247

lj-connect-backend's Issues

API: Branch modal

Tasks

APIs need to be created for the Branch modal.

Endpoint: /api/v1/branch/
Payload: No payload
Type: GET
Response: JSON data of the updated object

Endpoint: /api/v1/branch/
Payload: JSON data
Type: POST
Response: JSON data of the created object

Endpoint: /api/v1/branch/
Payload: JSON data
Type: PUT
Response: JSON data of the updated object

API: edit StaffDetail

Tasks

Endpoint: /api/v1/staff/
Payload: JSON data
Type: PUT
Response: JSON data of the updated object

feat: Auto generate python3 environment and .env

Tasks

  • Makefile to be added for auto download pipenv and generate .env if not found.
  • Similarly, there should be a command for cleaning the environment. (Ex. make clean)
  • .env file shouldn't be removed while executing the cleaning command.

Fix __str__ in StudentDetail model

Tasks

  • first name and last name should appear in __str__ before enrolment number
  • desired format : first_name last_name enrolment_number

API: Department Modal

Tasks

APIs need to be created for the Department modal.

Endpoint: /api/v1/department/
Payload: No payload
Type: GET
Response: JSON data

Endpoint: /api/v1/department/
Payload: JSON data
Type: POST
Response: JSON data of the created object

Endpoint: /api/v1/department/
Payload: JSON data
Type: PUT
Response: JSON data of the updated object

Add blank=True to some M2M fields

Tasks

  • There are some Many-to-Many fields that can be empty when an object is created.
  • Add blank=True to avoid errors in Django admin,

API: Faculty subject allocation

Tasks

Endpoint: /api/v1/faculty-allocation/
Payload: No payload
Type: GET
Response: JSON data

Endpoint: /api/v1/faculty-allocation/
Payload: JSON data
Type: POST
Response: JSON data of the created object

Endpoint: /api/v1/faculty-allocation/
Payload: JSON data
Type: PUT
Response: JSON data of the updated object

API: Student Modal

Tasks

APIs need to be created for the Student modal.

Endpoint: /api/v1/student/
Payload: No payload
Type: GET
Response: JSON data

Endpoint: /api/v1/student/
Payload: JSON data
Type: POST
Response: JSON data of the created object

Endpoint: /api/v1/student/
Payload: JSON data
Type: PUT
Response: JSON data of the updated object

Setup GitHub issue and PR templates

Tasks

  • Create an issue template for GitHub issues having default text like 'Tasks' with an unordered list below having 2 items placeholders by default.
  • Create a PR template having default text like 'This PR closes #' in bold and below that 'Changes' followed by an unordered list just like the issue template.

Google Authentication via REST API

Passwordless login via Google needs to be set up over REST API for React Frontend. There are a couple of options each having its pros and cons.

  1. Django-allauth with dj-rest-auth
  2. python-social-auth
  3. drf-social-oauth2

The most suited method should be used considering the level of security and reliability.

Update models.py to include null=True and blank=True where necessary

Description:

It is suggested to update the models.py file in our data app to make fields accept null values or remain empty when appropriate. The entire file will be reviewed, and fields that require modifications will be identified. The recommended approach is to add null=True and blank=True options to these fields. This update aims to enhance flexibility and ensure alignment with our application's requirements.

Update Remedial Test Result __str__ dunder method.

In the current version, the particular records of students in the Remedial Test Result table were not distinguished properly.

The record was shown to have a default index e.g. Remedial Test Result 1. I suggest adding an Enrollment Id, Semester, and Subject Short Name to the record which will make the student distinguished properly.

The Updated Record will look like 2021002171210121 SEM-4 TOC.

Fix JWT Leeway

Tasks

  • JWT Leeway is misconfigured.
  • Change the key from JWT_LEEWAY to LEEWAY.

Change models field names to snake_case

Tasks

  • There are some fields in data models where some field names are inconsistent.
  • Those field names need to be made strictly in snake_case.
  • One such observed issue is in Subject model's Weightage field.

Custom authentication classes for student and staff

Tasks

  • Two custom permission classes need to be created which will check if a staff member is actively working and a student is currently enrolled in the university.
  • It should be checked from the Bearer JWT token.

Initial backend setup

Title: Setup project environment for Django backend

Description:
This issue is to set up the project environment for a Django backend. The project is intended to have a backend built with Django, which will provide API endpoints for the front end.

Tasks:

  • Install and configure Python and Django on the local machine
  • Create a virtual environment for the project and activate it
  • Install required Python packages using pip
  • Initialize the Django project

Search field in Django admin for all data app models

Current scenario:

  • The Django-admin doesn't have any search field to find any particular record. This will result in a lot of scrolling through all the records linearly.

Desired scenario:

  • The Django-admin should have a search field for all the data app models where the admin can search records. Our top priority for the search field should be _str_, but if is not possible or very costly then the enrollment number will be a good idea.

Database model creation

Tasks:

  • Models related to university requirements to be created.
  • related_name and verbose_name should be used wherever possible for backward accessibility and better admin site readability respectively.

Update pr template

Tasks

  • pr template is having bold issues when the issue reference is selected and space is not removed at the end.

Pre-commit Not Working Properly

Tasks

  • Check for updates to pre-commit and related tools
  • Investigate the pre-commit configuration for any potential misconfigurations.

Databse setup for Django

Tasks:

  • Replace default sqlite3 database with PostgreSQL
  • Use appropriate ways to hide secret credentials

API: fetch user info

Task

Endpoint: /auth/v1/profile
Payload: No payload
Type: POST
Response: {"firstname": firstname,
"lastname":lastname,
"email": [email protected]
"role": "admin | hod | staff | student | guest",
"profile": avtar}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.