Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
maiquelp committed Nov 6, 2021
1 parent 628b893 commit 47cd2d6
Show file tree
Hide file tree
Showing 77 changed files with 46,879 additions and 15,913 deletions.
Binary file removed .github/screens.png
Binary file not shown.
Binary file removed .github/screenshots/email_mobile.png
Binary file not shown.
Binary file removed .github/screenshots/incident.png
Binary file not shown.
Binary file removed .github/screenshots/incident_mobile.png
Binary file not shown.
Binary file removed .github/screenshots/incidents_mobile.png
Binary file not shown.
Binary file removed .github/screenshots/main.png
Binary file not shown.
Binary file removed .github/screenshots/ong.png
Binary file not shown.
Binary file removed .github/screenshots/profile.png
Binary file not shown.
Binary file removed .github/screenshots/splash_mobile.png
Binary file not shown.
Binary file removed .github/screenshots/whatsapp_mobile.png
Binary file not shown.
2 changes: 1 addition & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
backend/src/database/db.sqlite
src/database/db.sqlite
1 change: 1 addition & 0 deletions backend/Insomnia_2021-11-06.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"_type":"export","__export_format":4,"__export_date":"2021-11-06T20:02:11.974Z","__export_source":"insomnia.desktop.app:v2021.4.1","resources":[{"_id":"req_7d0a2f98347a40bcacfc879651e0974b","parentId":"wrk_e9a6fdff4ae74e8d83f1a6d27ca235b9","modified":1633973541273,"created":1633956641761,"url":"http://localhost:3333/session","name":"session","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"email\": \"maiquelp@gmail.com\",\n\t\"password\": \"teste\"\n}"},"parameters":[],"headers":[{"description":"","id":"pair_61b45b6b45e944479abe6a9113203157","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1585299462949.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"wrk_e9a6fdff4ae74e8d83f1a6d27ca235b9","parentId":null,"modified":1633956641074,"created":1633956641074,"name":"Scales","description":"","scope":"collection","_type":"workspace"},{"_id":"req_a94dd8e7442945fcbd59ad7a6dd7a3dd","parentId":"wrk_e9a6fdff4ae74e8d83f1a6d27ca235b9","modified":1633956641763,"created":1633956641763,"url":"http://localhost:3333/recover","name":"recover password","description":"","method":"PUT","body":{"mimeType":"application/json","text":"{\n\t\"email\": \"maiquelp@gmail.com\"\n}"},"parameters":[],"headers":[{"description":"","id":"pair_61b45b6b45e944479abe6a9113203157","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1585285454386.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_a63821c056944e168f9a5701f14b1241","parentId":"wrk_e9a6fdff4ae74e8d83f1a6d27ca235b9","modified":1633965782701,"created":1633956641765,"url":"http://localhost:3333/reset?token=db563071&id=624ae86f","name":"reset password","description":"","method":"PUT","body":{"mimeType":"application/json","text":"{\n\t\"password\": \"senha\"\n}"},"parameters":[],"headers":[{"description":"","id":"pair_61b45b6b45e944479abe6a9113203157","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1585278450104.625,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_cffcab116c534f58a0763fe2bbf7ae33","parentId":"wrk_e9a6fdff4ae74e8d83f1a6d27ca235b9","modified":1634051253789,"created":1633956641767,"url":"http://localhost:3333/verify?token=75f3217f&id=59d02997","name":"verify user","description":"","method":"PUT","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1585274947963.8125,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_d44010e3238349588a63c70df0a1bc4f","parentId":"wrk_e9a6fdff4ae74e8d83f1a6d27ca235b9","modified":1634070904685,"created":1633956641757,"url":"http://localhost:3333/profile","name":"profile select","description":"","method":"GET","body":{"mimeType":"application/json","text":""},"parameters":[],"headers":[{"id":"pair_84a8bfc52b374031a7f3da7c131ce663","name":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU3OWJiNzFkIiwiaWF0IjoxNjM0MDcwNDYwLCJleHAiOjE2MzQxNTY4NjB9.4e6lcIFNZm-YaqtB6ItTyRdk6SLAJximTgTGgCEkT2A"}],"authentication":{},"metaSortKey":-1585256212025,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_109022e23613405495d68c629bbf4a66","parentId":"fld_101f225b38f14bd7a11bbb52d88afaee","modified":1633962754577,"created":1633956641677,"url":"http://localhost:3333/user","name":"create","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"name\": \"Maiquel\",\n\t\"email\": \"maiquelp@gmail.com\",\n\t\"password\": \"teste\"\n}"},"parameters":[],"headers":[{"id":"pair_84a8bfc52b374031a7f3da7c131ce663","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1585256290585,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_101f225b38f14bd7a11bbb52d88afaee","parentId":"wrk_e9a6fdff4ae74e8d83f1a6d27ca235b9","modified":1633962731668,"created":1633956641648,"name":"user","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1585256211975,"_type":"request_group"},{"_id":"req_6cc9277554e240ab8505a7ebb8ff0c11","parentId":"fld_101f225b38f14bd7a11bbb52d88afaee","modified":1635884039831,"created":1633956641728,"url":"http://localhost:3333/user","name":"select","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1585256290535,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_02ed32ad0b4849cab9785b2d5c9a5f13","parentId":"fld_7d03240f6a3941dab3e1359201d59df5","modified":1634070619134,"created":1633956641748,"url":"http://localhost:3333/asset?page=1","name":"select","description":"","method":"GET","body":{},"parameters":[],"headers":[{"id":"pair_9ba87a79e94e40d3ad900899a71d6b84","name":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU3OWJiNzFkIiwiaWF0IjoxNjM0MDcwNDYwLCJleHAiOjE2MzQxNTY4NjB9.4e6lcIFNZm-YaqtB6ItTyRdk6SLAJximTgTGgCEkT2A","description":""}],"authentication":{},"metaSortKey":-1585271445823,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_7d03240f6a3941dab3e1359201d59df5","parentId":"wrk_e9a6fdff4ae74e8d83f1a6d27ca235b9","modified":1633962796727,"created":1633956641735,"name":"assets","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1585256211925,"_type":"request_group"},{"_id":"req_8bff155785f748839ae3b093ef441b6b","parentId":"fld_7d03240f6a3941dab3e1359201d59df5","modified":1636206548288,"created":1636204421324,"url":"http://localhost:3333/mobileasset/579bb71d","name":"select mobile","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1585267657013.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_8450c49cad6944df9573ec6fce34cd43","parentId":"fld_7d03240f6a3941dab3e1359201d59df5","modified":1633977578262,"created":1633956641752,"url":"http://localhost:3333/asset/5","name":"delete","description":"","method":"DELETE","body":{},"parameters":[],"headers":[{"description":"","id":"pair_4e60e4d6f0be411a968d958d6c417674","name":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU3OWJiNzFkIiwiaWF0IjoxNjMzOTczNTQzLCJleHAiOjE2MzQwNTk5NDN9.jOUNbmSu2pgMNBetAAtSSBeZuU2g7aq1nKFa6bwtFew"}],"authentication":{},"metaSortKey":-1585263868204,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_e170f58f97e548fc8b7ff98d3be686eb","parentId":"fld_7d03240f6a3941dab3e1359201d59df5","modified":1633978939235,"created":1633977021048,"url":"http://localhost:3333/asset/3","name":"update","description":"","method":"PUT","body":{"mimeType":"application/json","text":"{\n\t\"title\": \"PETR4\",\n\t\"value\": \"35.123\"\n}"},"parameters":[],"headers":[{"description":"","id":"pair_4e60e4d6f0be411a968d958d6c417674","name":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU3OWJiNzFkIiwiaWF0IjoxNjMzOTczNTQzLCJleHAiOjE2MzQwNTk5NDN9.jOUNbmSu2pgMNBetAAtSSBeZuU2g7aq1nKFa6bwtFew"},{"name":"Content-Type","value":"application/json","id":"pair_d78d877beba343369ae76694a7c0800d"}],"authentication":{},"metaSortKey":-1585260079394.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_1c02986147de4bac91a8b2ee65005593","parentId":"fld_7d03240f6a3941dab3e1359201d59df5","modified":1633981166780,"created":1633956641740,"url":"http://localhost:3333/asset","name":"create","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"title\": \"WEGE3\",\n\t\"value\": \"33.123\"\n}"},"parameters":[],"headers":[{"description":"","disabled":false,"id":"pair_c2679270d99c40e08712c4e1be586ca4","name":"Content-Type","value":"application/json"},{"disabled":false,"id":"pair_84a8bfc52b374031a7f3da7c131ce663","name":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU3OWJiNzFkIiwiaWF0IjoxNjMzOTczNTQzLCJleHAiOjE2MzQwNTk5NDN9.jOUNbmSu2pgMNBetAAtSSBeZuU2g7aq1nKFa6bwtFew"}],"authentication":{},"metaSortKey":-1585256290585,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_a0c6a2f0da9b46e29600fa11ff468cb1","parentId":"wrk_e9a6fdff4ae74e8d83f1a6d27ca235b9","modified":1633956641306,"created":1633956641306,"name":"Base Environment","data":{},"dataPropertyOrder":null,"color":null,"isPrivate":false,"metaSortKey":1585245580177,"_type":"environment"},{"_id":"jar_66f7980a017f4450a6a1bd63d5219258","parentId":"wrk_e9a6fdff4ae74e8d83f1a6d27ca235b9","modified":1633956641446,"created":1633956641446,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_2d442f39ed0f4b9b879f09530d8f450d","parentId":"wrk_e9a6fdff4ae74e8d83f1a6d27ca235b9","modified":1633956641849,"created":1633956641606,"fileName":"Scales","contents":"","contentType":"yaml","_type":"api_spec"}]}
1 change: 0 additions & 1 deletion backend/Procfile

This file was deleted.

188 changes: 0 additions & 188 deletions backend/jest.config.js

This file was deleted.

20 changes: 10 additions & 10 deletions backend/knexfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ module.exports = {
useNullAsDefault: true
},

test: {
client: 'sqlite3',
connection: {
filename: './src/database/test.sqlite'
},
migrations: {
directory: './src/database/migrations'
},
useNullAsDefault: true
},
// test: {
// client: 'sqlite3',
// connection: {
// filename: './src/database/test.sqlite'
// },
// migrations: {
// directory: './src/database/migrations'
// },
// useNullAsDefault: true
// },

// staging: {
// client: 'postgresql',
Expand Down
Loading

0 comments on commit 47cd2d6

Please sign in to comment.