Coder Social home page Coder Social logo

zishe / nx-node-apollo-grahql-mongo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devunderflow/nx-node-apollo-grahql-mongo

0.0 1.0 0.0 293 KB

Nx Nodejs Apollo - TypegraphQL / GraphQL / Express / MongoDB - Typegoose API Boilerplate

Home Page: https://node-graphql-mongo.herokuapp.com/graphql

License: MIT License

Shell 1.74% JavaScript 20.09% TypeScript 78.17%

nx-node-apollo-grahql-mongo's Introduction


Nx

Nx-Nodejs-Apollo/GraphQL/Express/MongoDB Boilerplate

Try out GraphQL IDE live at https://node-graphql-mongo.herokuapp.com/graphql
This project was generated using Nx.

๐Ÿž Bug Report ย ย  ๐Ÿ“ข Feature Request

LICENSE contributions welcome Open Source

Tech Stack

๐Ÿ”Ž Nx is a set of Extensible Dev Tools for Monorepos.

Folder Structure For Node GraphQL API

apps/api/
โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ app
โ”‚   โ”‚   โ”œโ”€โ”€ entity
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ index.ts
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ user.ts
โ”‚   โ”‚   โ”œโ”€โ”€ index.ts
โ”‚   โ”‚   โ”œโ”€โ”€ loaders
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ apollo.loader.ts
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ dependencyInjector.ts
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ index.ts
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ mongoose.loader.ts
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ redis.loader.ts
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ seedDB.ts
โ”‚   โ”‚   โ”œโ”€โ”€ middlewares
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ isAuthenticated.ts
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ typegoose.middleware.ts
โ”‚   โ”‚   โ”œโ”€โ”€ modules
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ User
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ user.resolver.ts
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ index.ts
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ shared
โ”‚   โ”‚   โ””โ”€โ”€ services
โ”‚   โ”‚       โ””โ”€โ”€ user.service.ts
โ”‚   โ”œโ”€โ”€ assets
โ”‚   โ”œโ”€โ”€ environments
โ”‚   โ”‚   โ”œโ”€โ”€ environment.prod.ts
โ”‚   โ”‚   โ””โ”€โ”€ environment.ts
โ”‚   โ””โ”€โ”€ main.ts
โ”œโ”€โ”€ jest.config.js
โ”œโ”€โ”€ tsconfig.app.json
โ”œโ”€โ”€ tsconfig.json
โ””โ”€โ”€ tsconfig.spec.json

Development

We use node version 10.15.0

nvm install 10.15.0
nvm use 10.15.0

The first time, you will need to run

npm install

Run nx serve for a dev server. Navigate to http://localhost:4000/graphql. The app will automatically reload if you change any of the source files.

Build

Run npm run build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Understand your workspace

Run nx dep-graph to see a diagram of the dependencies of your projects.

Further help

Visit the Nx Documentation to learn more.

Developer

image
LinkedIn Portfolio

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

nx-node-apollo-grahql-mongo's People

Contributors

smithg09 avatar

Watchers

 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.