Skip to content

Commit c929e5f

Browse files
committed
adding express to test
1 parent d3ac82a commit c929e5f

File tree

4 files changed

+34
-12
lines changed

4 files changed

+34
-12
lines changed

README.md

+9-11
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
# 0xBTC Matic Wallet
1+
# 0xBitcoin Tailwind-Vue Website
22

3-
A web3 wallet for 0xBTC that works with the Matic and Ethereum networks.
3+
Deployed at https://0xbitcoin.org
44

5-
This dapp is deployed at Https://wallet.0xbtc.io
65

76

87

9-
## Project setup
108

9+
### Development commands
1110
```
1211
npm install
13-
npm run serve
12+
npm run dev
1413
```
1514

16-
17-
## Development Checklist
18-
19-
* Refine the method for reclaiming 0xbtc back to the Eth network (requires checkpointing)
20-
* Add more tokens
21-
* Add a simple transfer form button
15+
### Packaging commands
16+
```
17+
npm run build
18+
npm run server
19+
```

express.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const express = require('express');
2+
const app = express();
3+
const port = 3000;
4+
5+
app.use(express.static('dist'))
6+
app.get('/', (req, res) => {
7+
res.sendFile('./dist/index.html', { root: __dirname });
8+
});
9+
10+
app.listen(port, () => console.log(`listening on port ${port}!`));

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"version": "0.1.0",
55
"private": true,
66
"scripts": {
7-
"serve": "vue-cli-service serve",
7+
"dev": "vue-cli-service serve",
88
"build": "vue-cli-service build",
9+
"server": "node express.js",
910
"lint": "vue-cli-service lint"
1011
},
1112
"dependencies": {
@@ -26,6 +27,7 @@
2627
"babel-eslint": "^10.0.1",
2728
"eslint": "^5.8.0",
2829
"eslint-plugin-vue": "^5.0.0",
30+
"express": "^4.17.1",
2931
"vue-template-compiler": "^2.5.21"
3032
}
3133
}

public/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# 0xBitcoin Compiled Website
2+
3+
Deployed at https://0xbitcoin.org
4+
5+
6+
### This is the compiled code repo.
7+
8+
9+
10+
ADVISORY: DO NOT issue pull requests to this repo, they will be ignored!
11+
12+
Issue pull requests to https://github.com/0xbitcoin/0xbitcoin-web

0 commit comments

Comments
 (0)