Major refactor t adjust to the change in now's deployment model
Now deployment model changed: summarised below
- Builders replaced by functions
- Minimum refactor made to get to a working state
- lambdas to be placed in /api
- routing changed t a filesystem routing. This has to be overriden in now.json
- frontend is the main app now
Tried methods
Tried to use the now routing to use the previous directory structure but trying to get now to build the frontend was becoming a pain.
Todo
Paths to the frontend from the api are now redundant and need to be removed server.js is now compiled to a lambda which is unnecessary