To get started, you will need to have node and npm installed. Use nvm to manage node versions and save yourself from future headaches.
After that, setup is really easy:
-
Clone this repo.
-
Install all required npm packages using:
npm install
-
Start a local (auto-updating) development server with:
npm run dev
. -
Run the
jupyter-mercury
docker image (build instructions here)docker run --user root -p 8888:8888 jupyter-mercury:latest
-
Visit localhost:5000 in your browser.
-
Edit code to see changes on the fly.
That's it.
A few other npm scripts are available to help with common tasks:
npm run build
: builds (actually bundles) the application and puts it in thepublic/build
directory.npm run lint
: runs eslint and prettier on source files where it makes sense. See.eslintignore
and.prettierignore
to see which files are not considered.npm run start
: Hosts the application locally on port 5000. But does not rebuild the application as changes are made to the source.npm run validate
: Runs thesvelte-check
utility on the Svelte components.
- The official Svelte language support extension.
- ESLint for linting.
- Prettier for formatting. Periodically, press (Ctrl+Shift+I) to format the whole file.