Git Product home page Git Product logo

edu-server's People

Contributors

aayush-hub avatar abhishek-kumar09 avatar aksh-bansal-dev avatar atharmohammad avatar devesh21700kumar avatar dhwaj1902 avatar g-sudarshan avatar keenwarrior avatar kunal-kushwaha avatar neelparihar avatar nishihere19 avatar ritvij14 avatar shivambhatia5432 avatar souvikns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

edu-server's Issues

Create a development branch

By creating a separate development branch it will be easy to test a set of changes done prior to deployment.

Schemas for Contest and Questions for Assignments

Is your feature request related to a problem? Please describe.
The issue is created as per the context mentioned at the JBoss Link for creating a schema for contest on the platform, which can be extended to assignments and update user schema for rating/ranking.

Describe the solution you'd like
Creating models for storing the questions and pairing them randomly for contest on basis of the request for contest and difficulty level.

Additional context
It would be helpful if you can provide with any schema attributes in your mind.

No test for create user

Describe the bug
There is a test should be created it is for the user to be created but it is currently used for getting all the users.

To Reproduce
We can make another test to get all users and for the current test of should be created we can use it to create a new user.

If this issue is valid please assign this to me😊

Unit Testing

Describe the solution you'd like
I have learned unit testing recently and would like to write test for the application server so that, we can test individual components before hand to ensure a smooth flow while the whole application runs.

Describe alternatives you've considered

Additional context

Add docker compose under docker dir for MongoDB server spinup

The server is going to use MongoDB for execution. It will be easier to not setup DB locally and to use a docker container for the same.

Required outcomes

  • Adding docker-compose.yml under docker dir
  • Add steps in README to spin up the container

GitHub Actions Lint Fix

If npm run lint:fix is put up in Github workflows, it would be a lot of time-saving tasks for contributors.

[BUG] Throwing error when running npm run start:dev

Describe the bug
After setting up the project, when i use npm run start:dev it give a error that tsc-watch is not defined.

To Reproduce

  1. open terminal at root of the project
  2. Run command npm run start:dev
  3. See the error it throws

Expected behavior

It should start running the server in watch mode.

Desktop (please complete the following information):

  • OS: Mac os
  • Browser: Chrome
  • Version: latest

Additional context
it throws the error because package.json doesn't contain tsc-watch, we can install it under dev dependencies by npm i tsc-watch -D

Course Module for backend

Is your feature request related to a problem? Please describe.

We need to add schemas for the server for example users, courses, doubts, contests, assignments, etc. So that they can be properly stored in the database.

Describe the solution you'd like

Adding models of MongoDB schemas as described in docs for nestjs.

Remove all the interfaces from models

Currently due to typescript behaviour interfaces are not transpiled and their metadata with themself are lost during runtime thus no pipes could be used on them that makes them unwanted piece of code that are just increasing code lenth and nothing more, moreover we can add interfaces if they are needed in future due in some very special cases but none is there at this point of time.

Pagination

Apply pagination for get all channel discussions etc. Use TypeOrm Querybuilder Skip Method

Library Specific @Res disables the Standard Approach for POST Assignment Route

Describe the bug
This is more of a Nest code-practices-related bug.

The following @Res approach disables the Standard Approach in NestJS as discussed in the documentation here which helps in auto serialization to JSON

Screenshots (If applicable)

image

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser: Firefox
  • Version: 87

Additional context
To solve this bug, I would request, to add the following
@Res({ passthrough: true })

Add wishlist courses to the user is misbehaving

Current Behaviour:

Add Wishlist Course response

[
    {
        "cId": "6079e2c7294dcf960d3036be"
    }
]
cid should not be there, it should be stored in the form of array of courseId

Expected Behaviour

[
  { 
    ...all the course detail of the wishlist
  }
]

Adding GitHub actions Linting

Is your feature request related to a problem? Please describe.

We need to add tests for GitHub Actions to check all PRs.

Describe the solution you'd like

We can start this with properly configuring ESLint, such that we add another script to the project, which we then run using GitHub actions.

Describe alternatives you've considered

We can use either GitHub actions or stuff like Travis CI.

Connect Mongoose

Is your feature request related to a problem? Please describe.
If this application is gonna use MongoDB as a database solution, I would like to implement the mongo technique.

Describe the solution you'd like
By injecting the mongoose module we can have a clean way to creating and accessing schema in the application.

If this application is going to use MongoDB and the maintainers are fine with this, please assign this issue to me.

Create a pull request Template

Create a pull request that covers all the requirements for A perfect Pull request and is not limited to:

  • Perfect code style check
  • successful build
  • No console errors
  • No console warnings (sometimes)
  • Pull request against branch name
  • responsive UI
  • Test case being passed

CONTRIBUTING.md is needed.

I would like to add contributing guidelines to the repo. Kindly let me know if I can take this up. Any suggestions are welcome. Thank you.

Installation Error

Hi @KeenWarrior,
After "npm install", when i run "npm run start", It is showing this:

image

But ./service.json doesn't exist in the whole project.

Delete Wishlist not working

@Delete('/enrolledCourses/:userId/:courseId')
@ApiParam({ name: 'userId', type: String })
@ApiOkResponse({ type: [Schema.Types.ObjectId] })
async deleteEnrolled(
@Param('userId') userId: Schema.Types.ObjectId,
@Param('courseId') courseId: Schema.Types.ObjectId,
) {
return await this.userService.deleteEnrolledCourse(userId, courseId);
}
// Delete a wishlist
@Delete('/wishlist/:userId/:wishId')
@ApiParam({ name: 'userId', type: String })
@ApiOkResponse({ type: [Schema.Types.ObjectId] })
async deleteWishList(
@Param('userId') userId: Schema.Types.ObjectId,
@Param('wishId') wishId: Schema.Types.ObjectId,
) {
return await this.userService.deleteWishList(userId, wishId);
}
}

The code is not working as expected due to way the way data is stored. It doesnt delete the wishlist course

Add contributors section in Readme

Is your feature request related to a problem? Please describe.

Add the contributor's section in the Readme.md like this :

contributors

Describe the solution you'd like

Add required links
for ex: <a href="https://github.com/codeforcauseorg/edu-server/graphs/contributors"> </a> for changing image positions according to commits.

And for image you can use this <img src="https://contrib.rocks/image?repo=codeforcauseorg/edu-server" />

And use proper formatting.

BLANK ISSUE

Describe the bug

To Reproduce

Expected behavior

Screenshots (If applicable)

Desktop (please complete the following information):

  • OS:
  • Browser
  • Version

Smartphone (please complete the following information):

  • Device:
  • OS:
  • Browser
  • Version

Additional context

Add Same Course in Wishlist array

Describe the bug
Right now we are able to add the same course multiple times in the wishlist array of the same user.

To Reproduce
We can resolve this by adding a condition whether currseId exists in that user wishlist array if yes we can give an exception.

Add steps to setup MongoDb in documentation

Is your feature request related to a problem? Please describe.
In the documentation, nothing is written about MongoDb Setup. Contributors might think that MongoDB is not needed before running the project.

Describe the solution you'd like
Add how-to setup and run Mongodb before step 4 in the documentation.

Update README.md according to the Project Description

Is your feature request related to a problem? Please describe.
Right now more than half of the README is the same as that of a NestJS boilerplate, starting with the logo on the top.

Describe the solution you'd like

The README needs to be changed according to the project description.

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.