Skip to content

Commit 8184fdb

Browse files
committed
fixed names, added reset.css
1 parent 21aea26 commit 8184fdb

File tree

7 files changed

+17
-6
lines changed

7 files changed

+17
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A sample boilerplate that has the [postgres movie rental database](https://www.postgresqltutorial.com/postgresql-sample-database/) to play with.
44

5-
Requires Docker.
5+
Requires Docker for use of PostgreSQL.
66

77
To use:
88

dist/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<link rel="stylesheet" href="reset.css">
67
<link rel="stylesheet" href="style.css">
78
<title>Boilerplate</title>
89
</head>

dist/reset.css

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* {
2+
box-sizing: border-box;
3+
}
4+
5+
body{
6+
margin: 0;
7+
}

dist/style.css

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* You can get rid of all this, it is just for testing */
12
body{
23
display: flex;
34
justify-content: center;

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ app.use(staticMiddleware);
1313

1414
app.use(express.json());
1515

16+
// Feel free to delete these tests once you've gotten things working
1617
app.get('/api/test', (req, res) => {
1718
res.status(200).json({ success: 'Server test successful' });
1819
});

package-lock.json

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webpack.config.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
require('dotenv/config');
33
const path = require('path');
44

5-
const clientPath = path.join(__dirname, 'src/');
6-
const publicPath = path.join(__dirname, 'dist/');
5+
const srcPath = path.join(__dirname, 'src/');
6+
const distPath = path.join(__dirname, 'dist/');
77

88
module.exports = {
99
resolve: {
1010
extensions: ['.js', '.jsx']
1111
},
12-
entry: clientPath,
12+
entry: srcPath,
1313
output: {
14-
path: publicPath
14+
path: distPath
1515
},
1616
module: {
1717
rules: [
@@ -24,7 +24,7 @@ module.exports = {
2424
},
2525
devtool: 'source-map',
2626
devServer: {
27-
contentBase: publicPath,
27+
contentBase: distPath,
2828
port: process.env.DEV_SERVER_PORT,
2929
proxy: {
3030
'/api': `http://localhost:${process.env.PORT}`

0 commit comments

Comments
 (0)