An open API service indexing awesome lists of open source software.

https://github.com/rishabh-pandey-sternx/node-graphql-todo

ExpressJs server with graphql with auth todo
https://github.com/rishabh-pandey-sternx/node-graphql-todo

authentication authorization graphql graphql-schema graphql-server jwt-middleware jwt-token mongo moongose nodejs passportjs

Last synced: 7 months ago
JSON representation

ExpressJs server with graphql with auth todo

Awesome Lists containing this project

README

          

Graphql Todo with Auth

**Features**

- Login
- Register
- CRUD a todo (Need login to CUD)

**What used**
Back-end : Node.js, Express.js
Data fetching : GraphQL, Mongoose
Authentication : JWT

**Pre-work**

- MongoDB and Node.js must be installed in your computer.
- MongoDB must be run in your computer.

**How to run**

1. Clone or download project
2. Go to the project directory in command prompt
3. Install dependencies -> "npm install"
4. Run app -> "DEBUG=/:\* npm start"
5. Load "localhost:3001" in web browser

You can go to url : localhost:3001/graphql to test graphql api

**GraphQL queries and mutations**

#### Update here

**Web endpoint**

- /graphql
**- GraphQL Page - Test queries and mutations**

**Mongoose Schema**

- User - id(\_id) - password - email - name
- Todo - id(\_id) - user_id - title - completed - createdAt