https://github.com/bor0/notes
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bor0/notes
- Owner: bor0
- License: gpl-2.0
- Created: 2017-03-08T09:51:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-08T10:53:14.000Z (over 8 years ago)
- Last Synced: 2025-06-12T02:54:19.226Z (12 months ago)
- Language: JavaScript
- Size: 677 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Notes
-----
This application allows you to enter your own notes and save them for future use or modification. It uses React+Redux for the front-end and Express+SQLite for the back-end using GraphQL architecture.
I've written it to train my React and GraphQL skills. Tutorials: https://egghead.io/courses/getting-started-with-redux, https://www.howtographql.com/graphql-js/1-getting-started/.
Before running the server for the first time, run `npm install`.
To build the front-end, run `npm run build`.
Afterwards, run `npm start` to start the server.
API calls at http://localhost:8000/graphiql:
- Create a note:
```
mutation {
createNote(description: "Hello!") {
id
}
}
```
- Delete a note:
```
mutation {
deleteNote(id: 1)
}
```
- Update a note:
```
mutation {
updateNote(id: 5, description: "Heya!") {
id, description
}
}
```
- Query notes:
```
{
allNotes {
id, description
}
}
```
Short demo:

Boro Sitnikovski