1
0
mirror of https://github.com/pyscript/pyscript.git synced 2022-05-01 19:47:48 +03:00

Add some docs a links to improve the out-of-box experience.

This commit is contained in:
Russell Keith-Magee
2022-04-01 14:20:14 +08:00
parent 03da071a63
commit 2966002e44
4 changed files with 58 additions and 13 deletions

View File

@@ -1,12 +1,36 @@
# Svelte TypeScript Tailwindcss Setup
# PyScript Demonstrator
svelte template based on the default svelte/template with enabled typescript and tailwindcss support.
A simple webapp to demonstrate the capabilities of PyScript.
Related blogpost (on Svelte+TS+Tailwind): https://www.liip.ch/en/blog/svelte-typescript-tailwind-setup
## Getting started
```bash
npx degit munxar/svelte-template my-svelte-project
cd my-svelte-project
npm i
npm run dev
```
1. If you don't already have Node.js, install it. The official installer for the
LTS version of Node is available from [nodejs.org](https://nodejs.org/).
2. If you don't already have Rollup, install it. Rollup can be installed as a
global resource using:
$ npm install --global rollup
3. Install the demo apps requirements:
$ npm install
4. Start the server:
$ npm run dev
This will compile the resources for the app, and start the development server.
5. When the compilation completes, it will display something like:
Your application is ready~! 🚀
- Local: http://localhost:8080
- Network: Add `--host` to expose
────────────────── LOGS ──────────────────
Once this is visible, open a browser at
[http://localhost:8080](http://localhost:8080). This will provide a list of
demos that you can run.