I have a working example!
Live site:
http://redwood-pm2.nickgeerts.com
Repo:
Some comments:
- It would be nice to have .env loaded in api-server. Now I have to explicitly load dotenv in the node_args in the PM2 configuration.
- I map the API at /api (how creative eh), but the links in the root refer to absolute paths instead of relative paths. I could create a pull request for that, but I think one would actually prefer to not expose all the functions at that root API page (in production mode)?
Shall I create a cookbook recipe based on this for the Redwood site? I think it will help a lot of people.