Giter Site home page Giter Site logo

graphql-todo-app's Introduction

Technologies utilisées

  • NodeJS and TypeScript
  • GraphQL with Apollo Server and Type GraphQL
  • MongoDB Database integrated with Mongoose/TypeGoose
  • Docker (Not mandatory)

Structure des dossiers

Overview

.
├── src                        # Où se trouve le code source
│   ├── bootstrap              # Bootstrapping et chargement des dépendances de l'API (Express, Apollo, Database, ...)
│   ├── entities               # Utilisé pour générer le typage, les schémas et les modèles ORM
│   ├── modules                # Logique de l'application divisée par domaine (ex : Utilisateur, Comment, Todo)
│   ├── utils                  # Collection de fonctions utiles que nous utilisons dans le projet.
│   ├── config.ts              # Configuration de l'application, provenant des variables d'environnement.
│   └── index.ts               # Point d'entrée de l'API
│

├── docker-compose.yml         # Docker compose configuration (Optionnel car base de données est sur mongo atlas  !)
├── .env                       # Exemple de ce à quoi doit ressembler votre fichier .env
├── .gitignore                 # Fichier gitignore standard
├── package.json               # Dépendances de Node.js
├── README.md                  # readme file
└── tsconfig.json              # TypeScript compiler options

Module example

.
├── src
│   └── modules
│       └── user               # Nom du module
│           ├── input.ts       # Validation des entrées pour les mutations et les requêtes à l'aide de class-validator
│           ├── model.ts       # Modèle de base de données
│           ├── resolver.ts    # Résolveur GraphQL
│           └── service.ts     # Logique de l'application

How to use

  • Run npm install

Construire et démarrer le serveur

  • Run npm run start

Access to the GraphQL Playground

  • http://localhost:5000/graphql

graphql-todo-app's People

Contributors

zaid4kspr 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.