{"id":19228908,"url":"https://github.com/heppu/the-backend","last_synced_at":"2025-02-23T10:43:03.347Z","repository":{"id":84342024,"uuid":"71698200","full_name":"heppu/the-backend","owner":"heppu","description":"The Backend to replace all backends and deprecate all backend developers","archived":false,"fork":false,"pushed_at":"2016-10-23T13:05:50.000Z","size":8,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T22:44:59.241Z","etag":null,"topics":["backend","humor","javascript"],"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/heppu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2016-10-23T11:20:13.000Z","updated_at":"2018-02-08T00:15:49.000Z","dependencies_parsed_at":"2023-07-06T22:15:59.063Z","dependency_job_id":null,"html_url":"https://github.com/heppu/the-backend","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/heppu%2Fthe-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heppu%2Fthe-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heppu%2Fthe-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heppu%2Fthe-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heppu","download_url":"https://codeload.github.com/heppu/the-backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240304572,"owners_count":19780312,"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":["backend","humor","javascript"],"created_at":"2024-11-09T15:30:57.468Z","updated_at":"2025-02-23T10:43:03.317Z","avatar_url":"https://github.com/heppu.png","language":"JavaScript","readme":"# The Backend\nThere has been a lot of talk how different new technologies will make backend developers useless. Well brace yourselves because the time has come! With **The Backend** the frontend developers can implement the backend code inside the frontend and all in Javascript!\n\n![javascript](http://www.nikola-breznjak.com/blog/wp-content/uploads/2014/10/scepticKid.jpg)\n\n# How?\nHow is this possible you might ask. Well of course with the best tool in javascript for handling user inputs: [eval](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval). Just send your javascript code to backend and let the eval take care of if.\n\n![eval](http://pbs.twimg.com/media/CQ3sxTBUsAAOkc8.jpg)\n\n## Install\n```shell\ngit clone https://github.com/heppu/the-backend.git\nnpm install\n```\n\n## Run\n```shell\nsudo npm start\n```\n* Pro tip: run command as sudo so you can access all files in your system!\n\n## Usage examples\nSimple hello world:\n```javascript\nvar settings = {\n  \"url\": \"http://localhost:3000/\",\n  \"method\": \"POST\",\n  \"headers\": {\n    \"content-type\": \"text/plain\",\n  },\n  \"data\": \"res.send('Hello World!');\"\n}\n\n$.ajax(settings).done(function (response) {\n  console.log(response);\n});\n```\n\nList all files in current folder.\n```javascript\nvar settings = {\n  \"url\": \"http://localhost:3000/\",\n  \"method\": \"POST\",\n  \"headers\": {\n    \"content-type\": \"text/plain\",\n  },\n  \"data\": `\n    let exec = require('child_process').exec;\n    let cmd = 'ls';\n    exec(cmd, function(error, stdout, stderr) {\n        res.send(stdout);\n    });`\n}\n\n$.ajax(settings).done(function (response) {\n  console.log(response);\n});\n```\n* When you execute shell commands always remember to be careful so that you don't accidentally delete anything important!\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheppu%2Fthe-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheppu%2Fthe-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheppu%2Fthe-backend/lists"}