This is the card rendering part of the Parlameter project.
- Express for server (routing and handling requests)
- Mongoose for interaction with the MongoDB database
Word of caution
This readme concerns the development of the parlanode "backend", meaning the part that builds, renders, and serves cards and NOT the development of actual cards. Those instructions can be found in the README.md file in the
$ npm run dev
For development copy
config/development.js and change any settings in there.
When you run this app in production it will try to require
config/production.js. Look at the sample config or symlink one of the existing configs by running
ln -s production.js ./production_si.js
Every merge to master will trigger the webhook that tests and deploys parlanode to production. Success or error messages will be sent to DJND Slack #parladeploy channel.
Building & Caching
For each request to the card route the server checks if the card exists and builds the Vue bundles if they are not built. If no prerendered card is found it then fetches the data from parlalize and renders the card. After the card is rendered, the result stored to MongoDB for caching. Each subsequent request with the same card parameters will serve the prerendered card from cache.