Skip to content

vexy/infoportal

Repository files navigation

Voting platform frontend

Frontend component of the distributed voting platform project, written in TypeScript with SvelteKit framework.

Platform version: v1.7.1
Platform URL: https://infoportal.app
wakatime
wakatime

Base features

  • user registration
  • new users on-boarding instructions
  • search questions/poll
  • add new content
  • interact with content (vote for question options)

Installation & run instructions

Make sure you have latest NPM installed.
This project uses (minimums):

  • node v16.15
  • npm v8.5.5

As always, git clone this repo and cd into infoportal folder. Then, perform npm install and wait for installation to complete.

Running development build

To run the frontend component in development mode, execute the following:

npm run dev

After transpile completes, you should see a project interface if you visit localhost, port 3000 or 5000 in your browser.
Follow local console output for more details.

Running production build

Current Svelte adapter is adapter-node. You can adjust svelte.config.js for your needs.
To make production ready build, use:

npm run build  #wait for build to complete

After the build completes, you should see an output directory being created (/build) containing optimized version of the website. Use it as a starting point in production environments.

If you'd like to see a production ready bundle run:

npm run preview #preview production ready build

Copyright © Vexy, November 2021
GPG: E95AC467 2CB80301 05AD28E5 D9870441 7A92DE56