Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

silinternational/wecarry-ui

Repository files navigation

Archived

WeCarry has been discontinued and will not be developed further

WeCarry app

Dependencies

Node and Make

Local development

This project utilizes Rollup for its builds

Ensure your etc/hosts has a wecarry.local and minio alias to localhost cp .env.example .env and update the values as needed

Install the project dependencies and start a local server

make

Navigate to http://wecarry.local:5001. You should see your app running. Edit a component file in src, save it, and the page will automatically reload with your changes.

Testing social providers (oauth)

In order to utilize the social auth capabilities, BASE_API_URL and the locally running api's HOST must be localhost instead of wecarry.local. These vars are found in the .env and docker-compose.yml respectively.

Breakpoint testing

To see what Bootstrap responsive breakpoint you are currently viewing, add the following to the Footer.svelte:

<script>
// ADD THIS:
import BootstrapWidthIndicator from 'components/BootstrapWidthIndicator.svelte'
</script>

...

<footer ...>
    ...

    // AND ADD THIS:
    <span class="mx-2 text-muted float-right"><BootstrapWidthIndicator /></span>
</footer>

Deployment

make build

The contents of the dist folder can then be deployed to your host