Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/vantablanta/serverless-app

This mini project used React, DynamoDB, GraphQL. The application boiler plate was generated using amplify cli. It's really a cool app, I promise 😄.
https://github.com/vantablanta/serverless-app

amplify-cli appsync-graphql-api js reactjs

Last synced: about 6 hours ago
JSON representation

This mini project used React, DynamoDB, GraphQL. The application boiler plate was generated using amplify cli. It's really a cool app, I promise 😄.

Awesome Lists containing this project

README

        

## Buidling an application using React, GraphQL and AWSApp Sync

I got started with AWS Amplify just the other day. This application follows an idea from a workshop video by Nader Dabit.
Although at some point I decided to use a different approach and add abit more functionalities. My key focus in documenting this will be on GraphQL.
I used a JS backend.

### What I have implemented.

- Fetching data
- Fetching sorted data
- Adding data from the UI
- Updating data
- Deleting data

The logic can be applied for any crud application you'd like to make, in my case the data is for confrences to be held.

### Mistakes I made.

I can only term them as such coz I managed to fix them otherwise thy are bugs I encountered

- I tried passing actual values to the varaibales in my queries. I think just pass values from the frontend .
- In most cases the data being passed as a parameter will usually be a map . So, for instance you are passing an id for deletion,
it should be inside

```
{ nameoFMutationFunction, variable : {id : {theValueAsAMap}}}

```

### First time with GraphQL

To make calls to the database (Dynamo DB ), use queries,

To add, update or delete data use mutations

If you used the amplify cli to add an api these files will be generated for you.

### About Developer

When I imagined documenting this, I had a good idea of what should have been highlighted and it was interesting, but on paper it's not :smile:.

---

Anyway, please go through the code it might be able to answer questions you might have. Incase you'd like to checkout the **very well documented** guide by Nader Dabit [click here](https://github.com/dabit3/aws-appsync-react-workshop).

Also one of the most important handbook I used was [VERY IMPORTANT GUIDE](https://docs.amplify.aws/lib/graphqlapi/getting-started/q/platform/js/)