Skip to content

Commit

Permalink
checkpoint init
Browse files Browse the repository at this point in the history
  • Loading branch information
Liko Zhang authored and Liko Zhang committed Jul 10, 2021
1 parent bef9be7 commit 339b8c4
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package-lock.json
node_modules
dist
.npm
.DS_Store
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# nodejs-service

## Requirements

```
Nodejs 14+
Npm
```
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@
"bugs": {
"url": "https://github.com/eatrisno/nodejs-service/issues"
},
"homepage": "https://github.com/eatrisno/nodejs-service#readme"
"homepage": "https://github.com/eatrisno/nodejs-service#readme",
"dependencies": {
"core-js": "^3.15.2",
"express": "^4.17.1",
"regenerator-runtime": "^0.13.7"
}
}
8 changes: 8 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"use strict";

import "core-js/stable";
import "regenerator-runtime/runtime";

import httpApp from "./server";

httpApp.init();
8 changes: 8 additions & 0 deletions src/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import express from "express";

import router from "./routes/index";

const server = express();



0 comments on commit 339b8c4

Please sign in to comment.