Yarn.social PWA (Progressive Web App) written in MithrilJS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Alessandro Cutolo a682b981e6 add date and time to post 2 months ago
src add date and time to post 2 months ago
.gitignore Add upgrade instructions for managing 3rd party vendored dependencies 4 months ago
README.md create new setup and initial view 3 months ago
package-lock.json create new setup and initial view 3 months ago
package.json create new setup and initial view 3 months ago
proxy.config.js create new setup and initial view 3 months ago

README.md

pwa - Yarn.social Progressive Web App (SPA)

Work In Progress

Upgrading vendored Javascript dependencies

Make sure you have the following installed:

  • NodeJS && NPM
  • esbuild
    • go install github.com/evanw/esbuild/cmd/esbuild@latest

Now to upgrade the vendored Javascript dependencies in ./src/js/vendor:

$ npm install
$ esbuild --format=esm --bundle mithril > src/js/vendor/mithril.js
$ esbuild --format=esm --bundle polythene-mithril > src/js/vendor/polythene.js
$ esbuild --format=esm --bundle polythene-css > src/js/vendor/polythene-css.js

Run project locally

To run the project locally for development you need to run it under the same domani of a yarn pod to avoid CORS, it is recommended to run a yarn pod via docker and have it exposed under the port 8000.

Then serve the project locally run in three separate terminal the commands:

$ # Start frontend server
$ npm start
$ # Start a local yarnd instance via docker (might require "sudo")
$ npm run docker
$ # Start a proxy to serve both the frontend and backend yarn together
$ npm run proxy

After that you can launch the project on http://localhost:3000/