- Get the site locally.
Use git to download the code to build the site.
```shell
git clone git@github.com:umrlastig/lastig-gatsby.git
```
- Install dependencies.
Use npm:
```shell
npm install
```
or yarn for instance.
```shell
yarn install
```
-
Prepare the data. Run.
```shell node prepareData.js ```
-
Start developing.
Navigate into your new site’s directory and start it up.
```shell
cd lastig-gatsby/
npm run develop
```
- Open the code and start customizing!
Your site is now running at http://localhost:8000!
Edit pages to see your site update in real-time!
- Update the data
If you need to update the (csv) data for the website, run the script. It might take a while since it makes quite a few REST API requests... Be careful of the use_proxy variable. Furthermore, do not hesitate to run only the process you actually need (publications, etc.).
```shell
cd lastig-gatsby/
node prepareData.js
```
- Learn more
Deploy this site to github pages:
```shell
cd lastig-gatsby/
npm run deploy
```
Please run prettier:
```shell
npx prettier . --write
```