Git Product home page Git Product logo

suf-mern-gql-backend's Introduction

Stack Underflow | Backend

Here's frontend repo

TODO:

  1. Use transactions in mutation resolvers which involves multiple mutating db requests.

Update 1: Replace material-ui with twin.macro just to practice react, CSS and make reusable components. It's hard to get it all correct (flexibility, performance etc)

Update 2: Migrated Server codebase to Typescript using type-graphql, typegoose.

Update 3: Migrated Client codebase to Typescript using graphql, @graphql-codegen ๐Ÿ’š ,definitelyTyped libs.

Update 4: (27/10/2021) Automated Graphql Testing using jest, ts-jest, isomorphic-fetch.

Update 5: (29/10/2021) Replaced constant growing arrays with mongoose virtuals.

Update 6: (4/05/2022) Moving to Hybrid(poly repo + mono repo) structure to reduce code,build management issues, also I am not using tools like Nx,turborepo,bazel which would mitigate those issues.

Update 7: Improve existing data model.

Usage

Server:

Be sure check env.example and provide required .env files.

yarn install
yarn server dev

Built using

  • Node.js - Runtime environment for JS
  • Apollo Server - To build a self-documenting GraphQL API server
  • Type-graphql - For defining the Graphql schema using classes and decorators and additional features like dependency injection, validation and auth guards to embrace code reusability
  • MongoDB - Database to store document-based data
  • Mongoose - MongoDB object modeling for Node.js
  • Typegoose - Define Mongoose models using TypeScript classes
  • JSON Web Token - A standard to secure/authenticate HTTP requests
  • Bcrypt.js - For hashing passwords
  • Mongoose Unique Validator - Plugin for better error handling of unique fields within Mongoose schema.
  • Dotenv - To load environment variables from a .env file

suf-mern-gql-backend's People

Contributors

amand33p avatar af4oz avatar renovate-bot avatar

Watchers

 avatar  avatar

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.