You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creates DynamoDB table, IAM role, deploys Lambda and sets up API Gateway. If custom domain specified, deploys app under this custom domain (first deploy might take some time)
45
+
46
+
```bash
47
+
npm run sls:deploy
48
+
```
49
+
30
50
For proper paths, you __MUST__ define custom domain.
31
51
52
+
* Create/transfer domain in/to Route53
53
+
* Verify domain ownership
54
+
* Create *.domain certificate request in CloudFront Global (N. Virginia)
55
+
* Wait for it verifaction
56
+
32
57
```
33
-
npm run sls:deploy
58
+
CUSTOM_DOMAIN=todo.domain.com CUSTOM_DOMAIN_ENABLED=yes API_URL=https://todo.domain.com/api npm run sls:deploy
34
59
```
35
60
36
61
## Isomorphic!
@@ -48,4 +73,4 @@ all links start to work client side.
48
73
- One for server
49
74
- Another for client
50
75
- Third one (./webpack.serverless.js) for running in serverless
51
-
- The server, starts with some static data, **and is never updated**, you'll lose your changes if you reload the page.
76
+
- The server starts with empty data. Run `curl -X POST http://localhost:3000/api/init` to load initial data.
0 commit comments