Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
/ wbaas-ui Public archive
forked from wbstack/ui

Main VueJS based site for wbstack.com

License

Notifications You must be signed in to change notification settings

wmde/wbaas-ui

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wbstack UI

The code for the https://www.wbstack.com/ website.

Development

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

This app uses https://cli.vuejs.org.

Install dependencies

npm install

Run (with npm)

You can choose to run the ui via npm.

# run dev server
npm run serve

# build for production
npm run build

Run (with docker-compose)

You can also choose to run the ui in docker.

docker-compose up -d

Mocked API

This ui uses Mock Service Worker (https://mswjs.io/) to mock the backend api for test purposes.

To run dev server with mocked api, set env variable API_MOCK to a value that evaluates to true.

This can either be done at runtime using npm, or in .env for docker-compose.

VUE_APP_API_MOCK=1 npm run serve

Currently, logging in using any email and password will behave as if the same user is always logging in. Created wikis by that user will live in local storage (msw-myWikis key)

Backend api mocks live in /src/backend/mocks/default_handlers.js.

Note Firefox blocks service workers as long as we use localhost for local development. The only solution is to use chrom(ium) for now.

About

Main VueJS based site for wbstack.com

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Vue 72.1%
  • JavaScript 27.2%
  • Other 0.7%