-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from talyssonoc/release-v3
Release v3
- Loading branch information
Showing
180 changed files
with
7,396 additions
and
5,987 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DB_NAME=blog_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:jest/recommended", "prettier"], | ||
"plugins": ["node", "jest", "prettier", "@typescript-eslint"], | ||
"parserOptions": { | ||
"ecmaVersion": 11 | ||
}, | ||
"rules": { | ||
"@typescript-eslint/no-namespace": 0, | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"max-len": [ | ||
"error", | ||
{ | ||
"code": 120 | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,7 @@ | ||
# Logs | ||
*.log | ||
|
||
# Node | ||
node_modules/ | ||
|
||
# Project specific | ||
config/database.js | ||
|
||
# Unit test / coverage reports | ||
coverage/ | ||
.nyc_output | ||
|
||
# OS auto-generated files | ||
.DS_Store | ||
._* | ||
|
||
|
||
# Vim | ||
*~ | ||
*.swp | ||
*.swo | ||
|
||
# IDE files | ||
dist/ | ||
.index/ | ||
*.log | ||
.idea/ | ||
.vscode/ | ||
coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"arrowParens": "always", | ||
"printWidth": 120, | ||
"semi": true, | ||
"singleQuote": true | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { connect } from 'net'; | ||
|
||
const main = () => { | ||
const { argv } = process; | ||
|
||
let host = '127.0.0.1'; | ||
let port = 2580; | ||
|
||
if (argv.length === 4) { | ||
host = argv[2]; | ||
port = Number(argv[3]); | ||
} else if (argv.length === 3) { | ||
port = Number(argv[2]); | ||
} else { | ||
throw new Error('The command is supposed to be used as: yarn remote [server address] [REPL port]'); | ||
} | ||
|
||
const sock = connect(port, host); | ||
|
||
process.stdin.pipe(sock); | ||
sock.pipe(process.stdout); | ||
|
||
sock.on('connect', function () { | ||
process.stdin.resume(); | ||
process.stdin.setRawMode(true); | ||
}); | ||
|
||
sock.on('close', function done() { | ||
process.stdin.setRawMode(false); | ||
process.stdin.pause(); | ||
sock.removeListener('close', done); | ||
}); | ||
|
||
process.stdin.on('end', function () { | ||
sock.destroy(); | ||
console.log(); | ||
}); | ||
}; | ||
|
||
main(); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: "3.5" | ||
|
||
services: | ||
mongodb: | ||
container_name: blog-mongodb | ||
image: mongo:4.2 | ||
ports: | ||
- 27017:27017 | ||
environment: | ||
MONGO_INITDB_ROOT_USERNAME: blog | ||
MONGO_INITDB_ROOT_PASSWORD: blog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# @name article | ||
POST http://localhost:3000/api/articles | ||
Content-Type: application/json | ||
|
||
{ | ||
"title": "This is my first article", | ||
"content": "Test article content" | ||
} | ||
|
||
### | ||
GET http://localhost:3000/api/articles | ||
|
||
### | ||
@articleId = {{article.response.body.$.id}} | ||
|
||
POST http://localhost:3000/api/articles/{{articleId}}/comments | ||
Content-Type: application/json | ||
|
||
{ | ||
"body": "Nice!" | ||
} | ||
|
||
### | ||
|
||
@articleId = {{article.response.body.$.id}} | ||
|
||
PATCH http://localhost:3000/api/articles/{{articleId}}/publish |
Empty file.
Oops, something went wrong.