Coder Social home page Coder Social logo

dscnitrourkela / project-nutella Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 4.0 1.29 MB

Repository for the server of Apti-Che ( quiz conducting platform ) for AICHE NIT Rourkela

Home Page: https://aptiche.dscnitrourkela.org/graphql

License: MIT License

TypeScript 100.00%
node typescript express graphql apollo-server mongoose mongodb firebase hacktoberfest nodejs

project-nutella's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

project-nutella's Issues

Changes needed in Schema

  1. The createUser Mutation is failing. It works on Localhost but on the deployed version, there is an error.
    Screenshot (228)

  2. For the quiz entry points -

  • We need three queries - getLiveQuiz, getPastQuiz, getUpcomingQuiz - it would be good if we can get the computation done on the backend because Flutter isn't compute-intensive.
  • For the question type - there are a set of comprehension type questions - we have to figure out a way of storing them alongside the needed questions
  • since all questions are in the scheme of +3/-1, are we having a choice to adjust the marking scheme from the admin panel?

Setup PM2 for running node

  • Setup PM2 Scripts to run the application in
  1. Development mode
  2. Staging Environment
  3. Production Environment
  • Create pm2 ecosystem application configurations for the above environments.

  • Not specifically related to pm2 but more of like chores.

  1. Create ESLint fix and find scripts
  2. Create Prettier fix and find scripts.

Setup deployment workflows.

Setup Deployment workflows for the following.

  • Staging Deploy
  • Production Deploy
  • Preview Deploy (Pull Request)

Create Resolvers, Queries, Mutations

Create resolvers, queries, mutations for the following.

  1. Users
  2. Quizzes
  3. Questions.

Create the following queries and mutations for each.

  1. getUsers, createUser, updateUser, deleteUser
  2. getQuizzes, createQuiz, updateQuiz, deleteQuiz
  3. getQuestions, createQuestion, updateQuestion, deleteQuestion
  • Most of the required mutations can be fulfilled by the update mutations as an array of the update ID and the updates is to be passed. (arrays will help with multiple updates if neccessary)

Setup Authentication and Authorization

  • Set up Authentication with firebase admin auth
  • Set up a MongoDB session to persist auth on the server.
  • Use custom roles to setup up role-based authorization (admin and user)
  • Use the roles and context to protect the APIs.

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.