blubberbo / open-house-fun

A game about seeing open houses and betting on how much they will sell for.
0 stars 0 forks source link

Make file structure for crud operations #3

Open blubberbo opened 2 years ago

blubberbo commented 2 years ago

Mirror the file structure here https://github.com/mansour-ahmed/tutorial-build-a-serverless-database-using-faunadb-and-netlify-functions/tree/master/src (also see https://nordschool.com/build-a-serverless-database-using-faunadb-and-netlify-functions/) to have all crud operations routed in one file (but the code in a nested directory)

blubberbo commented 2 years ago

I don't think we are going to do this anymore, because it throws errors due to the callbacks not being functions. If we are going to consolidate the files into folders, we're going to have to find a different way

blubberbo commented 2 years ago

It looks like we might be able to move the files into folders, to make them easier to read in the dev environment and then move them around during deployment, although I don't know how to move them during deployment.

Note: we'd also need to do something about when running dev (netlify dev), which doesn't actually run a build