Skip to content

gaia-charge/website

Repository files navigation

Gaia Green Tech

Main website

This is the code for the main GGT website. It's build with Svelte and SvelteKit.

Running the website locally

You can install dependencies and run the project in development mode with:

cd website
npm install
npm run dev

Open up localhost:3000 and start clicking around.

Deployment

The website is automatically deployed with Netlify. Once you create a PR, it will build a preview website (you'll see the link as "deploy/netlify" in the Check section of your PR). Once the PR is merged in, it will be built and deployed automatically.

Code formatting

The code is being formatted with Prettier and prettier-plugin-svelte plugin. Before pushing code, you should run Prettier:

npm run prettier

Otherwise, the GitHub Action will create a commit in your branch with a cleanup.

Setting the CORS

Troubleshooting aws

ls /opt/homebrew/Cellar/awscli/
/opt/homebrew/Cellar/awscli/${VERSION}/libexec/bin/python3 -m ensurepip --upgrade
/opt/homebrew/Cellar/awscli/${VERSION}/libexec/bin/python3 -m pip install awscli-plugin-endpoint

Update ~/.aws/config with cli_legacy_plugin_path = /opt/homebrew/Cellar/awscli/${VERSION}/libexec/lib/python3.11/site-packages