Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rafael Alviano Dafito #38

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,31 @@
# mini-wp
# mini-wp

#### This app was build by Express and Mongoose

#### All routes must initially be given _http://localhost:3000_

List of user routes:

Route | HTTP | Header(s) | Body | Description
------|------|-----------|------|-------------
_user/register_ | **POST** | none | email, password | Create new user
_user/privateAuth_ | **POST** | none | email, password | Login with private Authentication to dashboard page
_user/openAuth_ | **POST"** | none | id_token | Login with open(google) Authentication to dashboard page

List of article routes:

Route | HTTP | Header(s) | Body | Description
------|------|-----------|------|-------------
_/article_ | **GET**| usertoken | none | Get all list articles
_/article_ | **POST** | usertoken | image,title(*required*),content(*required*) | Create new Article
_/article/:id_ | **PUT** | usertoken | title(*required*),content(*required*) | Edit Article
_/article/:id_ | **DELETE** | usertoken | article_id | Delete one article
_/article/findOne/:id_ | **GET**| usertoken | none | Get one articles



Make sure you have Node.js and npm installed in your computer, and then run these commands:

* $ npm install
* $ npm start
* $ npm run dev
1 change: 1 addition & 0 deletions client/.cache/00/d05f82dce4c2631ae1a93574447da6.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions client/.cache/01/3a61d983b4d0b8e0ead31e3c2d019d.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"id":"node_modules/axios/lib/helpers/parseHeaders.js","dependencies":[{"name":"/Users/rafaelalvianodafito/Documents/Hacktivate/loyal-fox_phase_2_w_2/Senin/mini-wp/client/package.json","includedInParent":true,"mtime":1579433711796},{"name":"/Users/rafaelalvianodafito/Documents/Hacktivate/loyal-fox_phase_2_w_2/Senin/mini-wp/client/node_modules/axios/package.json","includedInParent":true,"mtime":1579339661594},{"name":"./../utils","loc":{"line":3,"column":20},"parent":"/Users/rafaelalvianodafito/Documents/Hacktivate/loyal-fox_phase_2_w_2/Senin/mini-wp/client/node_modules/axios/lib/helpers/parseHeaders.js","resolved":"/Users/rafaelalvianodafito/Documents/Hacktivate/loyal-fox_phase_2_w_2/Senin/mini-wp/client/node_modules/axios/lib/utils.js"}],"generated":{"js":"'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n"},"sourceMaps":{"js":{"mappings":[{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":1,"column":0},"generated":{"line":1,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":2,"column":0},"generated":{"line":2,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":3,"column":0},"generated":{"line":3,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":4,"column":0},"generated":{"line":4,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":5,"column":0},"generated":{"line":5,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":6,"column":0},"generated":{"line":6,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":7,"column":0},"generated":{"line":7,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":8,"column":0},"generated":{"line":8,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":9,"column":0},"generated":{"line":9,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":10,"column":0},"generated":{"line":10,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":11,"column":0},"generated":{"line":11,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":12,"column":0},"generated":{"line":12,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":13,"column":0},"generated":{"line":13,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":14,"column":0},"generated":{"line":14,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":15,"column":0},"generated":{"line":15,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":16,"column":0},"generated":{"line":16,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":17,"column":0},"generated":{"line":17,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":18,"column":0},"generated":{"line":18,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":19,"column":0},"generated":{"line":19,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":20,"column":0},"generated":{"line":20,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":21,"column":0},"generated":{"line":21,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":22,"column":0},"generated":{"line":22,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":23,"column":0},"generated":{"line":23,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":24,"column":0},"generated":{"line":24,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":25,"column":0},"generated":{"line":25,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":26,"column":0},"generated":{"line":26,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":27,"column":0},"generated":{"line":27,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":28,"column":0},"generated":{"line":28,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":29,"column":0},"generated":{"line":29,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":30,"column":0},"generated":{"line":30,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":31,"column":0},"generated":{"line":31,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":32,"column":0},"generated":{"line":32,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":33,"column":0},"generated":{"line":33,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":34,"column":0},"generated":{"line":34,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":35,"column":0},"generated":{"line":35,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":36,"column":0},"generated":{"line":36,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":37,"column":0},"generated":{"line":37,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":38,"column":0},"generated":{"line":38,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":39,"column":0},"generated":{"line":39,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":40,"column":0},"generated":{"line":40,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":41,"column":0},"generated":{"line":41,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":42,"column":0},"generated":{"line":42,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":43,"column":0},"generated":{"line":43,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":44,"column":0},"generated":{"line":44,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":45,"column":0},"generated":{"line":45,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":46,"column":0},"generated":{"line":46,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":47,"column":0},"generated":{"line":47,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":48,"column":0},"generated":{"line":48,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":49,"column":0},"generated":{"line":49,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":50,"column":0},"generated":{"line":50,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":51,"column":0},"generated":{"line":51,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":52,"column":0},"generated":{"line":52,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":53,"column":0},"generated":{"line":53,"column":0}},{"source":"node_modules/axios/lib/helpers/parseHeaders.js","original":{"line":54,"column":0},"generated":{"line":54,"column":0}}],"sources":{"node_modules/axios/lib/helpers/parseHeaders.js":"'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n"},"lineCount":54}},"error":null,"hash":"2357f5efbd7377f34f767784813ec5b4","cacheData":{"env":{}}}
1 change: 1 addition & 0 deletions client/.cache/01/bb935a8efc49b9a00649b577478975.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions client/.cache/02/12d9c866e807c8991c7ede65878952.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions client/.cache/02/eafc6813d7230442809333728a80f5.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions client/.cache/03/10100b633fac3be94eaf9cdcfed5a8.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions client/.cache/05/3a3a9373d15b68f762cb349c5c11df.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions client/.cache/05/79b824e9bfcd53f3b6e4b5728cb21b.json

Large diffs are not rendered by default.

Loading