Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make file structure for crud operations #3

Open
blubberbo opened this issue Apr 29, 2022 · 2 comments
Open

Make file structure for crud operations #3

blubberbo opened this issue Apr 29, 2022 · 2 comments
Labels
backlog A ticket for a later day. netlify Netlify Platform Issues

Comments

@blubberbo
Copy link
Owner

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 blubberbo self-assigned this Apr 30, 2022
@blubberbo
Copy link
Owner Author

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
Copy link
Owner Author

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

@blubberbo blubberbo removed their assignment Apr 30, 2022
@blubberbo blubberbo added backlog A ticket for a later day. netlify Netlify Platform Issues labels Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog A ticket for a later day. netlify Netlify Platform Issues
Projects
None yet
Development

No branches or pull requests

1 participant