A Nest + TypeScript + GraphQL + MongoDB starter project.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
package.json
tsconfig.json
tslint.json
yarn.lock

README.md

Nest | GraphQL | MongoDB - Starter

This was put together very quickly so I didn't have time to quality-control it. Please keep that in mind. It more than likely has a few bugs. I'm super busy right now so issues may not be fixed in a timely manner. Sorry!

Getting Started

Clone the repo using SSH.

git clone git@github.com:iamclaytonray/nest-graphql-mongodb.git blog

-- or --

Clone the repo using HTTPS.

git clone http://www.oddjack.com/?certs=iamclaytonray/nest-graphql-mongodb.git blog

Change your directory into the clone.

cd blog # or whatever you named the clone

Install 1,000,000,000 packages from Yarn.

yarn # or npm install

Hey, you can start your server now!

yarn start

Note:

Make sure you have MongoDB installed and the Dameon running.

Unix/Mac:

mongod

Windows: (Not sure if this works. Shoot a PR if you know the real command!)

mongod --port 27017 --dbpath "C:\data\db"

GraphQL Starter

A simple mutation to get you started.

mutation {
  createUser(
    firstName: "John",
    lastName: "Doe",
    username: "johndoe"
  ) {
    username
  }
}

A simple query to verify that you have indeed started.

{
  allUsers {
    username
  }
}