summaryrefslogtreecommitdiffstats
path: root/backend/README.md
blob: 2aab87c48283f6471e0d78f2b771194a27774627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
What are all these files?!

What are the steps:


When you want to add a new function:

1. Open your `schema.graphql` and add it to the mutatiions
2. Add a mutation resolver to match that new mutation:

  ```
    addToCart(parent, args, ctx, info) {
      console.log('ADding an item to cart!');
    },
  ```
3. Create a client-side Mutation that will accept the arguments and call it


### Installing Docker

1. download docker
1. run `prisma local start`
1. Run `prisma deploy`

if in trouble, run `prisma local nuke`



### Cloudinary

1. go to your settings and turn on unsigned uploading
2.


## TODO:
1. When an item is deleted, the cartItems need to be deleted as well
1. When an order goes through, delete cartItems