Create and deploy simple openscad api

A minimal frontend integration has been added to as a POC

resolves #219 and #222
This commit is contained in:
Kurt Hutten
2021-02-25 20:28:59 +11:00
parent 8493838f0c
commit 63c2a79a5d
15 changed files with 1848 additions and 44 deletions

22
api/src/docker/README.md Normal file
View File

@@ -0,0 +1,22 @@
# Serverless
We're using the serverless from work for deployment
```
sls deploy
```
But Kurt Hutten credentials for deployment, though if you wanted to set your own account you could deploy to that if you wanted to test.
## testing changes locally
Honestly it's a pain in the neck, for a number of reasons.
You'll need to have Docker installed
Because of the way the docker containers to be deployed as lambdas on aws are somewhat specialised for the purpose we're using `docker-compose` to spin one up for each function/endpoint. But more work needs to be done to get this to work with the app locally.
```bash
docker-compose up --build
```
The first time you run the, when it has to build the main image it will take some time, but launching again will be quicker.