add deploy instructions

This commit is contained in:
2021-07-24 21:16:00 +08:00
parent a4b7536fe0
commit 8a92cfc7d7
3 changed files with 20 additions and 2 deletions

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@
node_modules/* node_modules/*
.env .env
/pnpm-lock.yaml /pnpm-lock.yaml
build/*

16
README.md Normal file
View File

@@ -0,0 +1,16 @@
# neo-double-hearts
```bash
git clone https://git.sduonline.cn/juzheng/neo-double-hearts
cd neo-double-hearts/
cp .env.example .env
vim .env # Fill in your config
npm i typescript -g
npm i
# Compile & Run
npm run build
npm start
# Or:
node --require ts-node/register src/index.ts
```

View File

@@ -5,7 +5,8 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"start": "build/index.js" "start": "build/index.js",
"build": "tsc"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",