Skip to content

Commit da7fb2a

Browse files
committed
initial commit
0 parents  commit da7fb2a

32 files changed

+31612
-0
lines changed

.gitignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
node_modules
2+
mysql_data
3+
4+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
5+
6+
# dependencies
7+
frontend/node_modules
8+
frontend/.pnp
9+
frontend.pnp.js
10+
11+
# testing
12+
frontend/coverage
13+
14+
# production
15+
frontend/build
16+
17+
# misc
18+
frontend/.DS_Store
19+
frontend/.env.local
20+
frontend/.env.development.local
21+
frontend/.env.test.local
22+
frontend/.env.production.local
23+
24+
frontend/npm-debug.log*
25+
frontend/yarn-debug.log*
26+
frontend/yarn-error.log*

backend/Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM node:alpine
2+
WORKDIR /app
3+
COPY package.json ./
4+
RUN npm install
5+
COPY ./ ./
6+
CMD ["npm", "run", "start"]

backend/Dockerfile.dev

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM node:alpine
2+
WORKDIR /app
3+
COPY package.json ./
4+
RUN npm install
5+
COPY ./ ./
6+
CMD ["npm", "run", "dev"]

backend/db.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const mysql = require('mysql');
2+
const pool = mysql.createPool({
3+
connectionLimit: 10,
4+
host: 'mysql',
5+
user: 'root',
6+
password: 'password',
7+
database: 'myapp',
8+
port: 3306,
9+
});
10+
11+
exports.pool = pool;

0 commit comments

Comments
 (0)