Skip to content
Parlameter parlanode component renders cards and makes them shareable and embeddable.
Vue JavaScript HTML
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cards
config
data add functionality to add organisation in dashboard Oct 17, 2019
og-images
parlassets @ 457fa68
server
.eslintignore
.eslintrc.js
.gitignore
.gitmodules
README.md
crowdin.yml
jsconfig.json
package-lock.json
package.json
run.js

README.md

Parlanode

This is the card rendering part of the Parlameter project.

Cards are implemented using Vue. Their sources (and development instructions) are stored in the cards folder. They are rendered using vue-server-renderer

Server

  • Express for server (routing and handling requests)
  • Mongoose for interaction with the MongoDB database

Development

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 cards folder.

Serving

$ npm run dev

Configuration

For development copy config/sample.js to 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

Deployment

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.

Example

[GET] https://glej.parlameter.si/p/izracunana-prisotnost/9/
You can’t perform that action at this time.