{"id":16091067,"url":"https://github.com/palerdot/dexpressjs","last_synced_at":"2025-04-05T17:43:39.707Z","repository":{"id":30266449,"uuid":"33817883","full_name":"palerdot/dexpressjs","owner":"palerdot","description":"Simple nodejs routing framework created for learning purpose.","archived":false,"fork":false,"pushed_at":"2015-04-12T13:32:28.000Z","size":116,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-11T14:51:29.500Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/palerdot.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}},"created_at":"2015-04-12T13:28:19.000Z","updated_at":"2023-11-20T22:37:10.000Z","dependencies_parsed_at":"2022-09-06T23:40:38.079Z","dependency_job_id":null,"html_url":"https://github.com/palerdot/dexpressjs","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/palerdot%2Fdexpressjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palerdot%2Fdexpressjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palerdot%2Fdexpressjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palerdot%2Fdexpressjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/palerdot","download_url":"https://codeload.github.com/palerdot/dexpressjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378091,"owners_count":20929293,"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-10-09T15:08:34.677Z","updated_at":"2025-04-05T17:43:39.685Z","avatar_url":"https://github.com/palerdot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dexpress.js\n\nDexpress.js is a very basic web framework for nodejs *(similar to expressjs, hence the name)* created for **learning purpose.** \n\nAll you can do is \n* listen to a particular port\n* define simple get and post routes *(no fancy named routes, parameters ... )*. \n\nThe idea is to see how one can implement expressjs like routing framework from scratch in nodejs.\n\n### Basic Usage:\n*(or usage of this basic framework, whatever)*\n```javascript\nvar dexpress = require(\"./dexpress.js\"), // or from wherever you have placed this js file\n\tapp = dexpress();\n\napp.listen(); // default port is \"6060\"\n//or\napp.listen(\"3000\"); // sets the port to \"3000\"\n\n// Define a simple 'GET' route\napp.get(\"/greet\", function (request, response) {\n\tresponse.writeHeader(\"200\", {\"Content-Type\": \"text/html\"});\n\tresponse.end(\"\u003ch1\u003e\u003cstrong\u003eHello Universe\u003c/strong\u003e\u003c/h1\u003e - Greetings from Dexpress!\");\n});\n// Define a simple 'POST' route\napp.post(\"/greet\", function (request, response) {\n\tresponse.writeHeader(\"200\", {\"Content-Type\": \"text/html\"});\n\tresponse.end(\"\u003ch1\u003e\u003cstrong\u003eHello Universe - You are posting to greet route\u003c/strong\u003e\u003c/h1\u003e - Greetings from Dexpress!\");\n});\t\n// you can also define an 'ALL' route that gets called for all request methods\napp.all(\"/greet\", function (request, response) {\n\t// do whatever you feel like doing\n});\n```   \n\nI have been using expressjs for some time without even knowing what is possible in nodejs itself, hence this simple project. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalerdot%2Fdexpressjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalerdot%2Fdexpressjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalerdot%2Fdexpressjs/lists"}