Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/iswpPublic

License

NotificationsYou must be signed in to change notification settings

TNRIS/iswp

Repository files navigation

Software for theInteractive Texas State Water Plan

#startnpm run dev

Tools

using node 18.16.0

Developing

Once you've created a project and installed dependencies withnpm install (orpnpm install oryarn), start a development server:npm package

npm run dev# or start the server and open the app in a new browser tabnpm run dev -- --open

Building

To create a production version of your app:

  1. download gill-sans font insteuctions in gill-sans/README.md
  2. Download a copy ofreact-pivot-standalone-4.1.1.min.js and place in static folder root.
npm run build
  1. compile main.scss (Install sass firstnpm install -g sass) runmake css in project root alternatively you can runsass main.scss main.css in the sass directory Then move it into static/cssDesigned to be compiled manually due to sveltekit not allowing prerender = true on dynamic routes AKA [slug] pages. Resulting in a split second where the css is not loaded causing a flicker effect.
  2. Compile a version of chartist located here.https://github.com/L-Har/chartist (Trying to get this in upstream)
  3. Make sure to pull fromhttps://github.com/chartist-js/chartist and merge new changes if this still isn't upstream.
  4. Place dist folder in lib/chartist folder and place package.json from the repo here.
  5. Create a local modules folder and place src and dist in it.
  6. link to library withnpm link src/lib/chartistYou can preview the production build withnpm run preview.
  7. Build static sitemake build from the source directory.

To deploy your app, you may need to install anadapter for your target environment.

Deploying and building

  1. runmake deploy_prod

Creating cache

How to create cache.

  1. Convert non-spatial data (Used to be sqlite files) to JSON
  2. gzip then remove .gz files Should be cache.json (But gzipped)
  3. upload to s3 bucket,
  4. set metadata to Content-Encoding gzip, Content-Type application/json
  5. Make publically accessible.

Creating db check file

  1. Run getmdata.js file
  2. upload checkfile2023.json tohttps://tnris-droc.s3.amazonaws.com/iswp/

Prettier Configuration

Prettier config is located in package.json.prettier-plugin-svelte Svelte for vs code extension has this installed.

LICENSING

This program is licenced under GPLV2 Please see LICENSE file for details.This program is distributed with the following programs under separate free licenses. View them for details.

leaflet, leaflet Easybutton, skeleton.css, react-pivot standalone, leaflet omshttps://leafletjs.com/https://github.com/CliffCloud/Leaflet.EasyButtonhttps://github.com/jawj/OverlappingMarkerSpiderfier-Leaflethttps://github.com/dhg/Skeletonhttps://github.com/L-Har/react-pivothttps://github.com/davidguttman/react-pivothttps://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp