Everything you need to build a Svelte project, powered by sv.
Choose your python virtual environment in your VS Code placed in the botton. In my case 3.12.3('py312':conda) and restart.
Go to Ecuador datos abiertos, download the excel files and convert them to csv files. Be careful with ',' for decimals in google sheets. Move the converted files to static/data/input.
Check support data cardinality if necessary.
-
Import xls files to google sheets and remove special characters (like "~", "'", ",").
-
Prepare categories csv file, no accents and MAYUSC.
-
Rename columns.
Run these scripts
To install your python libraries
npm run python:dependenciesTo load a csv file, clean and generate one cumulated csv file
npm run data:generateTo generate a json file with all summaries for your svelte project
npm run data:summary-
Go to svelte-starter and click Use this template button.
-
Clone the repo and install dependencies.
-
You are going to use
layercakepackage so you need to turn of runes insvelte.congif.js. -
Follow the commits as a project template of what to do. With this you can manage scrollytelling and charts.
Build
npm run buildcheck local production
npm run previewdeploy to github
make githubThen Go to github Settings/Page and choose deploy from branch main/docs.