sity.earth aims to make recycling more accessible and apprehensible through visuals. It serves as an entry point to learn about the impacts of waste. The site helps home sorters properly dispose of waste based on city guidelines and encourages lifestyle changes such as using less, reusing, and keeping waste local.
sity.earth is a web app built using SvelteKit. Each “page” is a Svelte component consisting of HTML, JavaScript, and Dart Sass (not node-sass). The initial request is rendered on the server, but subsequent requests are handled by the client much like a traditional SPA.
User authentication is handled through Firebase Auth. The database is Firestore (NoSQL).
To check if Node.js is installed on your system, type the following line into a terminal:
node -v
# if a version number like this is returned
# it means Node.js is already installed
v16.14.0
If Node.js is not installed, head over to nodejs.org and download the current LTS version.
Note: Node.js should be v16.13.0 or newer to not cause issues with SvelteKit.
After Node.js is installed, pull all the files from this repo to your computer and install all Node modules:
npm i
You’re all set now! Move on to the next section to see how to start a local development server.
Once you start to make edits to the code, start a development server and preview changes in real-time:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
# or start the server and expose it to other devices on the same network
npm run dev -- --host
To create a production version of sity.earth:
npm run build
To preview the production build, type npm run preview
.
Commit messages usually start with one of the following labels:
.scss
or .svelte
file.README.md
file..svelte
file.Note: earlier commits to this repo include other labels that have now been deprecated or combined.