{"id":21292498,"url":"https://github.com/bipul-hossein/create-a-nodejs-server-using-expressjs","last_synced_at":"2026-05-08T11:34:03.402Z","repository":{"id":62813614,"uuid":"556362147","full_name":"bipul-hossein/create-a-nodejs-server-using-expressjs","owner":"bipul-hossein","description":"Here's a step by step guide on how to open a nodejs server using ExpressJS.","archived":false,"fork":false,"pushed_at":"2022-11-22T07:21:00.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T06:32:53.453Z","etag":null,"topics":["backend","express","nodejs"],"latest_commit_sha":null,"homepage":"https://frist-api-deploy.vercel.app/","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/bipul-hossein.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":"2022-10-23T17:23:35.000Z","updated_at":"2023-09-28T07:05:11.000Z","dependencies_parsed_at":"2022-11-07T05:45:14.589Z","dependency_job_id":null,"html_url":"https://github.com/bipul-hossein/create-a-nodejs-server-using-expressjs","commit_stats":null,"previous_names":["bipul-hossein/create-a-nodejs-server-using-expressjs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bipul-hossein%2Fcreate-a-nodejs-server-using-expressjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bipul-hossein%2Fcreate-a-nodejs-server-using-expressjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bipul-hossein%2Fcreate-a-nodejs-server-using-expressjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bipul-hossein%2Fcreate-a-nodejs-server-using-expressjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bipul-hossein","download_url":"https://codeload.github.com/bipul-hossein/create-a-nodejs-server-using-expressjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243762228,"owners_count":20343972,"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","express","nodejs"],"created_at":"2024-11-21T13:50:22.789Z","updated_at":"2026-05-08T11:33:58.369Z","avatar_url":"https://github.com/bipul-hossein.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## How to Create an Express API Server??\n* First, Go to the site [expressjs.com](https://expressjs.com/en/starter/installing.html)\n* Secondly, According to the documentary, the tasks must be done step by step.\n\n## Details\ni. প্রথমে একটা Folder খুলতে হবে।[useing ($ mkdir myapp) on command prompt]\nএবং তারপরে cmd তে গিয়ে cd দিয়ে Folder এর ভিতরে যেতে হবে। যেমন:\n\n```ruby\ncd myapp\n\n```\n\nii. Use the npm init command to create a package.json file for your application. \n\n```ruby\nnpm init -y\n```\n\niii. Now install Express in the myapp directory and save it in the dependencies list. For example:\n\n```ruby\nnpm install express\n```\n\niv. create a index.js file and write the code as below:\n\n```ruby\n    const express = require('express');\n    const app = express();\n    const port = 5000;\n\n    app.get('/', (req, res) =\u003e {\n    res.send('Hello World!');\n    });\n\n    app.listen(port, () =\u003e {\n    console.log('Example app listening on port', port);\n    });\n    \n```\n                                                        \nExtra:\n\ni. Update for Live Code_ Please Install nodemon for ever project.\n\n```ruby\n    npm install -g nodemon\n```\n    \nii. ওয়েবসাইটে Api data ব্যবহার করার জন্য cors install  করতে হবে।\n    Go to [expressjs.com](https://expressjs.com/en/starter/installing.html) and then \u003e Resources \u003e Middleware \u003e cors.\n    * cmd Cors Install code:\n    \n ```ruby \n    npm install cors\n ```\n \n    *And Include the (index.js) file.\n    \n```ruby \n    const cors = require('cors')\n    app.use(cors())\n```           \n\niii. For deploy purpose, create a (.gitignore) file and write the code as below:\n\n```\n/node_modules/\n```\n\niv. Go to 'package.json' and write the code inside the 'scripts' :\n\n```ruby\n\"start\":\"node index.js\"\n``` \n\n#### For See the Server:\n\n```ruby\nnode index.js\n```\nor,\n```ruby\nnodemon index.js\n```\n\n### Written by [Bipul Hossain](https://www.linkedin.com/in/bipul-hossain)\n## For vercel deploy \n* [How To Deploy an Express API on Vercel.](https://fahimahammed-cse.medium.com/deploy-an-express-api-on-vercel-eebc13ace629)  Written by, [Fahim Ahammed Firoz](https://github.com/fahimahammed) vai.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbipul-hossein%2Fcreate-a-nodejs-server-using-expressjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbipul-hossein%2Fcreate-a-nodejs-server-using-expressjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbipul-hossein%2Fcreate-a-nodejs-server-using-expressjs/lists"}