{"id":27625796,"url":"https://github.com/cherrybeans/legendary-manager-webapp","last_synced_at":"2025-08-02T13:34:13.057Z","repository":{"id":83455714,"uuid":"158013451","full_name":"cherrybeans/legendary-manager-webapp","owner":"cherrybeans","description":"The webapp edition. React, GraphQL, Apollo Client.","archived":false,"fork":false,"pushed_at":"2019-01-13T16:20:16.000Z","size":178,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-23T12:50:38.650Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cherrybeans.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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,"zenodo":null}},"created_at":"2018-11-17T18:34:35.000Z","updated_at":"2019-01-13T16:20:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9fb434f-4c2c-4742-ac78-a5210b339ce0","html_url":"https://github.com/cherrybeans/legendary-manager-webapp","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/cherrybeans%2Flegendary-manager-webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherrybeans%2Flegendary-manager-webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherrybeans%2Flegendary-manager-webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherrybeans%2Flegendary-manager-webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cherrybeans","download_url":"https://codeload.github.com/cherrybeans/legendary-manager-webapp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherrybeans%2Flegendary-manager-webapp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259262623,"owners_count":22830560,"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":"2025-04-23T12:29:35.169Z","updated_at":"2025-06-11T12:08:10.608Z","avatar_url":"https://github.com/cherrybeans.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The Legendary Manager Webapp\n\n\u003e Webapp of the best todo app evverrr\n\nThe webapp. React, GraphQL, Apollo Client.\n\n## Getting started\n\nThis webapp is used together with [legendary-manager-api](https://github.com/cherrybeans/legendary-manager-api), so go ahead and set that one up if you want to run this properly.\n\n### Setting up\n\nI use `yarn`, but you may use `npm` instead with the equivalent commands.\n\nClone the project and install dependencies as such:\n\n```sh\n$ git clone git@github.com:cherrybeans/legendary-manager-webapp.git # or if not using ssh git clone https://github.com/cherrybeans/legendary-manager-webapp.git\n$ cd legendary-manager-webapp\n$ yarn # install the project dependencies\n```\n\nThen you can run the server with `yarn start` and go to [localhost:3030](http://localhost:3030) to view webapp.\n\n### Useful scripts\n\nIn the project directory, you can run:\n\n#### `yarn start`\n\n\u003e If you get an error mentioning that a module cannot be found, use the following command instead:\n\u003e `NODE_PATH=src/ \u0026\u0026 yarn start`\n\u003e This error happens because on some machines the configuration that gives us absolute imports is not being set correctly, and you need to manually set the config in your terminal.\n\nRuns the app in the development mode. Open [http://localhost:3030](http://localhost:3030) to view it in the browser.\n\nThe page will reload if you make changes to the project. You will also see any lint errors in the console.\n\n#### `yarn build`\n\nBuilds the app for production to the `build` folder. It correctly bundles React in production mode and optimizes the build for the best performance.\n\n## A little noob guide on deploying on a Linux server\n\n### Prerequisites\n\nYou'll need [node](https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04) and `yarn` (to make use of the lock file, though you may use npm).\nYou'll also need some tool to host it. We have used `Apache` to host this project. If you haven’t already installed it on your server, install it with `sudo apt install apache2` or use another tool.\n\n### Frontend\n\nFirst, make sure that `index.js` uses the production uri for linking the frontend to the server. It should be:\n\n```js\nconst client = new ApolloClient({\n  uri: \"exampledomain.com:4000/graphql\"\n});\n```\n\nFrom your root folder, do the following:\n\n```sh\n$ yarn build\n$ scp -r build \u003cusername\u003e@exampledomain.com:~  # Copies the build folder to your home directory on the server\n```\n\nThen ssh into your server: `ssh \u003cusername\u003e@exampledomain.com`.\n\n```sh\n$ sudo mv build /var/www/html/\n$ sudo mv /var/www/html/build /var/www/html/prosjekt4\n```\n\nNow hopefully everything is up and running! The API should be up and running on [http://exampledomain.com:4000/graphql](http://exampledomain.com:4000/graphql).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcherrybeans%2Flegendary-manager-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcherrybeans%2Flegendary-manager-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcherrybeans%2Flegendary-manager-webapp/lists"}