Skip to content

radicleart/stxeco-vote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5d85675 · Jan 10, 2025
Nov 28, 2023
Nov 28, 2023
Jan 10, 2025
Nov 22, 2024
Nov 28, 2023
Nov 28, 2023
Nov 28, 2023
Nov 28, 2023
Nov 28, 2023
Nov 28, 2023
Nov 28, 2023
Nov 28, 2023
Nov 28, 2023
Nov 28, 2023
Nov 28, 2023
Nov 4, 2024
Jun 17, 2024
Jul 18, 2024
Jan 10, 2025
Jan 10, 2025
Nov 28, 2023
Jun 25, 2024
Jul 16, 2024
Jun 13, 2024
Jun 17, 2024

Repository files navigation

stxeco-vote

stxeco-vote is the main ui component of the stx.eco community voting application.

Routes

The main routes are;

Components

The stxeco-vote svelte application depends on;

Admin features

The following ts file contains an allow list of addresses;

  • /src/lib/proposals.ts

Adding an address here and connecting the wallet reveals an admin link with some additional dao management features.

Developing

Test with node v20.10.0

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

Deployment

Application currently runs in Linode cloud. This is an Ubuntu server running Caddy for the application and Caddy as a reverse proxy to the api docker container.

An ssh key is required for access (see @mijoco).

Web deployment

Web application is deployed by running

./stxeco-vote/deploy-stxeco.sh

Api deployment

The API application runs in a docker container which is built/deployed by running

cd hubgit/stxeco/stxeco-api-vote
git pull
git pull https://github.com/radicleart/stxeco-api-vote.git daoless
./build-stxeco.sh