74 lines
No EOL
1.6 KiB
Markdown
74 lines
No EOL
1.6 KiB
Markdown
# SVG Layout Designer React
|
|
|
|
[](https://drone.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react)
|
|
|
|
[](https://drone.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react)
|
|
|
|
[](https://dev.azure.com/enguyen0660/SVGLayoutDesignerReact/_build/latest?definitionId=4&branchName=dev)
|
|
|
|
An svg layout designer.
|
|
|
|
# Getting Started
|
|
|
|
Requierements :
|
|
- NodeJS
|
|
- npm
|
|
- pnpm (optional but recommanded unless you prefer having a huge `node_modules` directory)
|
|
|
|
# Developping
|
|
|
|
Run `npm ci`
|
|
|
|
Run `npm run dev`
|
|
|
|
|
|
|
|
|
|
# Deploy
|
|
|
|
Run `npm ci`
|
|
|
|
Run `npm run build`
|
|
|
|
|
|
# Run the tests
|
|
|
|
Run `npm ci`
|
|
|
|
Run `npm test`
|
|
|
|
|
|
# API
|
|
|
|
You can preload a state by setting the `state` URL parameter
|
|
with a url address to a `state.json` file.
|
|
|
|
Example: `http://localhost:4000/?state=http://localhost:5000/state.json`
|
|
|
|
# Testing the external API
|
|
|
|
This program fetch the data structure from others applications, allowing it to assemble them later.
|
|
|
|
## With NodeJS
|
|
|
|
```bash
|
|
node run ./test-server/node-http.js
|
|
```
|
|
|
|
The web server will be running at `http://localhost:5000`
|
|
|
|
Configure the file `.env.development` with the url
|
|
|
|
## With bun.sh
|
|
|
|
Install `bun`
|
|
|
|
Inside `test-server` folder, run :
|
|
|
|
```bash
|
|
bun run http.js
|
|
```
|
|
|
|
The web server will be running at `http://localhost:5000`
|
|
|
|
Configure the file `.env.development` with the url |