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
- Host: GitHub
- URL: https://github.com/rishabh-pandey-sternx/node-graphql-todo
- Owner: rishabh-pandey-sternx
- Created: 2019-09-17T16:26:11.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-17T18:11:52.000Z (about 6 years ago)
- Last Synced: 2025-01-15T11:49:27.214Z (9 months ago)
- Topics: authentication, authorization, graphql, graphql-schema, graphql-server, jwt-middleware, jwt-token, mongo, moongose, nodejs, passportjs
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 browserYou 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