{"id":21065513,"url":"https://github.com/sebtee/ecocalculator","last_synced_at":"2025-03-14T01:46:39.973Z","repository":{"id":128869027,"uuid":"238425191","full_name":"SebTee/EcoCalculator","owner":"SebTee","description":"Want to reduce your carbon footprint? find out how!","archived":false,"fork":false,"pushed_at":"2020-03-27T15:18:09.000Z","size":1177,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-20T21:11:47.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SebTee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-05T10:36:37.000Z","updated_at":"2024-05-30T18:28:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"632d29c6-90f6-492b-a439-5872ea15ff4e","html_url":"https://github.com/SebTee/EcoCalculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebTee%2FEcoCalculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebTee%2FEcoCalculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebTee%2FEcoCalculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebTee%2FEcoCalculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SebTee","download_url":"https://codeload.github.com/SebTee/EcoCalculator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243509647,"owners_count":20302247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T17:55:25.489Z","updated_at":"2025-03-14T01:46:39.942Z","avatar_url":"https://github.com/SebTee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EcoCalculator\nWant to reduce your carbon footprint? find out how!\n\n[Test Server](https://sebtee.com/eco/)\n\n## [Documentation](https://sebtee.github.io/EcoCalculator/ecocalculator/0.0.0/)\n\ngenerate documentation command to run in project root file\n```shell script\njsdoc -c ./jsDocConf.json *\n```\n\n## Setup\n\nDownload and install the latest version of [postgres database](https://www.postgresql.org/download/) for your platform as well as [NodeJS](https://nodejs.org/) and [NPM](https://www.npmjs.com/).\n\nOnce installed log into the postgres command line interface as a super user and run the following commands:\n```postgresql\nCREATE DATABASE ecocalculator;\nCREATE USER ecocalculator WITH PASSWORD 'ecocalculator';\n```\n\nIn a terminal session run the following commands:\n```shell script\ngit clone https://github.com/SebTee/EcoCalculator.git\ncd EcoCalculator\nnpm install\n```\nThis Downloads the source code and installs the dependencies.\n\nIf you are using a unix based operating system like Linux or MacOS you can run the following command to construct and populate the database:\n```shell script\npsql -d ecocalculator -f ./database/createDB.sql\n```\n\nOtherwise you will have to log back into the Postgres command line interface and run the following commands:\n```postgresql\n\\c ecocalculator\n\\i [absolute path to createDB.sql]\n```\nReplace `[absolute path to createDB.sql]` with the absolute path to `createDB.sql`. The file is found relative to the project root at `./database/createDB.sql`.\n\nOnce this is done navigate to the project root in a terminal session and run this command to start the server:\n```shell script\nnpm start\n```\n\nYou should now be able to see the web app at `http://localhost:3000` in a browser on the same machine that's running the server.\nIf you want to access it on another device you need to know the host machine's public IP address. You can access it at `http://[IPaddress]:3000`.\n\n## GitHub users\n\n* [AhmadKhuzaei](https://github.com/AhmadKhuzaei) - Ahmad Al-khuzaei (up879591)\n\n* [Nikki789](https://github.com/Nikki789) - Nikoleta Koleva (up899244)\n\n* [Olliejb1](https://github.com/Olliejb1) - Oliver Borsberry (up896129)\n\n* [up900822](https://github.com/up900822) - Priya Bhatti (up900822)\n\n* [SebTee](https://github.com/SebTee) - Sebastian Tee (up886472)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebtee%2Fecocalculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebtee%2Fecocalculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebtee%2Fecocalculator/lists"}