add docs and change default dev port

This commit is contained in:
mmacierzanka committed 2023-05-07 21:11:27 +02:00
1 parent 90110d771e
commit c7c42d4a1f
2 files changed
+35 -33

No files matched your search

+26 -24
View File
@@ -1,34 +1,36 @@
## Usage
# Inverse Band
Those templates dependencies are maintained via [pnpm](https://pnpm.io) via `pnpm up -Lri`.
## Instalacja i uruchomienie
This is the reason you see a `pnpm-lock.yaml`. That being said, any package manager will work. This file can be safely be removed once you clone a template.
- Wymagania systemowe
```bash
$ npm install # or pnpm install or yarn install
```
- Node.js (z npm) >= 19.0.0
### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs)
- Kroki instalacji
1. Uruchomienie terminala w katalogu głównym projektu
2. Instalacja zależności za pomocą `npm install` lub `yarn install`
3. Uruchomienie projektu w trybie testowym za pomocą `npm run dev` lub `yarn dev` (po pomyślnym wystartowaniu polecenia projekt powinień być dostępny pod adresem http://localhost:3000)
## Available Scripts
## Rozwiązywanie problemów
In the project directory, you can run:
- Port serwera jest zajęty (address in use)
### `npm dev` or `npm start`
1. Otwarcie pliku `vite.config.ts`
2. Edycja własności `port` np. na wartość 5000
Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
```typescript
import { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
The page will reload if you make edits.<br>
export default defineConfig({
plugins: [solidPlugin()],
server: {
port: 5000,
},
build: {
target: "esnext",
},
});
```
### `npm run build`
Builds the app for production to the `dist` folder.<br>
It correctly bundles Solid in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.<br>
Your app is ready to be deployed!
## Deployment
You can deploy the `dist` folder to any static host provider (netlify, surge, now, etc.)
3. Restart serwera (strona powinna być wtedy dostępna pod adresem http://localhost:5000)
+9 -9
View File
@@ -1,12 +1,12 @@
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
export default defineConfig({
plugins: [solidPlugin()],
server: {
port: 80,
},
build: {
target: 'esnext',
},
plugins: [solidPlugin()],
server: {
port: 3000,
},
build: {
target: "esnext",
},
});