Skip to content

Commit

Permalink
Merge pull request #28 from osamhack2022/backend-feat-account
Browse files Browse the repository at this point in the history
[#11] ํšŒ์› ๊ณ„์ • ๊ด€๋ จ ๊ตฌํ˜„์‚ฌํ•ญ ์ ์šฉ
  • Loading branch information
inyeoptti authored Oct 8, 2022
2 parents cba6b4e + 14bd8de commit 1a5f2a4
Show file tree
Hide file tree
Showing 25 changed files with 7,268 additions and 6,267 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ dist

# TernJS port file
.tern-port

# JSDoc output files
/backend/out
32 changes: 16 additions & 16 deletions backend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true,
},
extends: ["airbnb-base"],
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
rules: {
"no-console": "off",
"spaced-comment": "off",
"no-else-return": "off",
},
root: true,
env: {
browser: true,
es2021: true,
node: true,
},
extends: ["airbnb-base"],
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
rules: {
"no-console": "off",
"spaced-comment": "off",
"no-else-return": "off",
},
};
7 changes: 4 additions & 3 deletions backend/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"trailingComma": "es5",
"tabWidth": 4
}
"trailingComma": "es5",
"tabWidth": 4,
"useTabs": true
}
11 changes: 7 additions & 4 deletions backend/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
## backend ์‹คํ–‰
## backend ์‹คํ–‰

```
$ cd backend
$ npm install
$ npm start
$ npm start
```

## MariaDB ์‹คํ–‰

```
$ sudo apt update
$ sudo apt install mariadb-server=1:10.3.34-0ubuntu0.20.04.1
Expand Down Expand Up @@ -35,6 +36,7 @@ $ sudo mysql -u test -p < backend/base.sql
๋งŒ์•ฝ ์žˆ๋‹ค๋ฉด `drop database milidream_db;`

์œ„ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋œจ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

```
classKey classContent
1 ๋ฏธ์ •
Expand All @@ -50,11 +52,12 @@ userKey userName id passwd classContent
```

## Direcotry Structure

```
๐Ÿ“‚ backend
๐Ÿ“‚src
โ”œโ”€โ”€ ๐Ÿ“‚api
| โ”œโ”€โ”€ ๐Ÿ“‚middlewares
| โ”œโ”€โ”€ ๐Ÿ“‚middlewares
| | โ””โ”€โ”€ ๐Ÿ“„index.js
| โ”œโ”€โ”€ ๐Ÿ“‚routes
| โ””โ”€โ”€ ๐Ÿ“„index.js
Expand All @@ -74,4 +77,4 @@ userKey userName id passwd classContent
๐Ÿ“„ .prettierrc.json
๐Ÿ“„ package.json
๐Ÿ“„ README.md
```
```
Loading

0 comments on commit 1a5f2a4

Please sign in to comment.