{"id":24797523,"url":"https://github.com/dylanlott/mtgapi","last_synced_at":"2025-03-24T21:20:00.701Z","repository":{"id":76955841,"uuid":"173354134","full_name":"dylanlott/mtgapi","owner":"dylanlott","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-02T02:13:13.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T01:29:47.271Z","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/dylanlott.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}},"created_at":"2019-03-01T19:03:51.000Z","updated_at":"2019-03-02T02:13:14.000Z","dependencies_parsed_at":"2023-03-10T23:45:19.384Z","dependency_job_id":null,"html_url":"https://github.com/dylanlott/mtgapi","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/dylanlott%2Fmtgapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fmtgapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fmtgapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fmtgapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylanlott","download_url":"https://codeload.github.com/dylanlott/mtgapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245352093,"owners_count":20601093,"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-01-30T01:28:31.818Z","updated_at":"2025-03-24T21:20:00.692Z","avatar_url":"https://github.com/dylanlott.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Creating a server with Express\n\nIn this example, we will create a simple server with Express a fast, unopinionated, minimalist web framework for Node.js.\n\n### Getting started with Express\n\nLet's start with adding dependency:\n\n```\nyarn add express\n```\n\n### Deploy with Now\n\nFirst we need to create a `now.json` configuration file to instruct Now how to build the project.\n\nFor this example we will be using our newest version [Now 2.0](https://zeit.co/now).\n\nBy adding the `version` key to the `now.json` file, we can specify which Now Platform version to use.\n\nWe also need to define each builders we would like to use. [Builders](https://zeit.co/docs/v2/deployments/builders/overview/) are modules that take a deployment's source and return an output, consisting of [either static files or dynamic Lambdas](https://zeit.co/docs/v2/deployments/builds/#sources-and-outputs).\n\nIn this case we are going to use `@now/node` in order to start a Node.js server using Express, also we will need to add a [`routes`](https://zeit.co/docs/v2/deployments/configuration#routes) key instructing Now to forward and handle all routes on Express.\n\nWe will also define a name for our project (optional).\n\n```json\n{\n    \"version\": 2,\n    \"name\": \"nodejs-express\",\n    \"builds\": [\n        { \"src\": \"index.js\", \"use\": \"@now/node\" }\n    ],\n    \"routes\": [\n        { \"src\": \"/(.*)\", \"dest\": \"index.js\" }\n    ]\n}\n```\n\nVisit our [documentation](https://zeit.co/docs/v2/deployments/configuration) for more information on the `now.json` configuration file.\n\nWe are now ready to deploy the app.\n\n```\nnow\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanlott%2Fmtgapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylanlott%2Fmtgapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanlott%2Fmtgapi/lists"}