├── .gitignore ├── LICENSE ├── README.md ├── github ├── detailUrl.png ├── detailUrlDark.png ├── detailUrlSchedule.png ├── errorPage.png ├── loginPage.png ├── logoshrtnit.png └── newUrl.png ├── server ├── .editorconfig ├── .eslintrc.js ├── .locales ├── Procfile ├── knexfile.js ├── package.json ├── src │ ├── app │ │ ├── controllers │ │ │ ├── SessionController.js │ │ │ ├── UrlController.js │ │ │ └── UserController.js │ │ ├── dto │ │ │ ├── UrlDto.js │ │ │ └── UserDto.js │ │ ├── middlewares │ │ │ └── authMiddleware.js │ │ ├── repositories │ │ │ ├── UrlRepository.js │ │ │ └── UserRepository.js │ │ ├── services │ │ │ ├── session │ │ │ │ └── CreateSessionService.js │ │ │ ├── url │ │ │ │ ├── CreateUrlService.js │ │ │ │ ├── DeleteUrlService.js │ │ │ │ ├── DetailUrlService.js │ │ │ │ ├── ListUrlService.js │ │ │ │ └── RedirectUrlService.js │ │ │ └── user │ │ │ │ └── CreateUserService.js │ │ └── utils │ │ │ ├── SlugGenerator.js │ │ │ └── checkUrlAvailability.js │ ├── database │ │ ├── index.js │ │ └── migrations │ │ │ ├── 20201028105534_createUsersTable.js │ │ │ └── 20201028105543_createUrlsTable.js │ ├── index.js │ └── routes.js └── yarn.lock └── web ├── .editorconfig ├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── README.md ├── package.json ├── public └── index.html ├── src ├── App.js ├── assets │ └── images │ │ └── demonstration.svg ├── components │ ├── Button │ │ ├── index.js │ │ └── styles.js │ ├── Header │ │ ├── index.js │ │ └── styles.js │ ├── InputForm │ │ ├── index.js │ │ └── styles.js │ ├── Jumbotron │ │ ├── index.js │ │ └── styles.js │ ├── Layout │ │ └── index.js │ ├── LayoutAuthenticate │ │ ├── index.js │ │ └── styles.js │ ├── ModalCreateUrl │ │ ├── content.js │ │ ├── index.js │ │ └── styles.js │ ├── Title │ │ ├── index.js │ │ └── styles.js │ └── ToggleTheme │ │ ├── index.js │ │ └── styles.js ├── context │ ├── theme.js │ └── user.js ├── index.js ├── pages │ ├── Dashboard │ │ ├── index.js │ │ └── styles.js │ ├── Login │ │ ├── content.js │ │ ├── index.js │ │ └── styles.js │ ├── Register │ │ ├── content.js │ │ ├── index.js │ │ └── styles.js │ └── UrlNotFound │ │ ├── index.js │ │ └── styles.js ├── routes │ ├── Router.js │ └── index.js ├── services │ └── api.js ├── styles │ ├── global.js │ └── themes │ │ ├── dark.js │ │ └── light.js └── utils │ ├── formatDateHour.js │ ├── usePersistState.js │ ├── useTheme.js │ └── useUser.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/README.md -------------------------------------------------------------------------------- /github/detailUrl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/github/detailUrl.png -------------------------------------------------------------------------------- /github/detailUrlDark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/github/detailUrlDark.png -------------------------------------------------------------------------------- /github/detailUrlSchedule.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/github/detailUrlSchedule.png -------------------------------------------------------------------------------- /github/errorPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/github/errorPage.png -------------------------------------------------------------------------------- /github/loginPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/github/loginPage.png -------------------------------------------------------------------------------- /github/logoshrtnit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/github/logoshrtnit.png -------------------------------------------------------------------------------- /github/newUrl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/github/newUrl.png -------------------------------------------------------------------------------- /server/.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/.editorconfig -------------------------------------------------------------------------------- /server/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/.eslintrc.js -------------------------------------------------------------------------------- /server/.locales: -------------------------------------------------------------------------------- 1 | pt_BR 2 | -------------------------------------------------------------------------------- /server/Procfile: -------------------------------------------------------------------------------- 1 | web: node src/index.js 2 | -------------------------------------------------------------------------------- /server/knexfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/knexfile.js -------------------------------------------------------------------------------- /server/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/package.json -------------------------------------------------------------------------------- /server/src/app/controllers/SessionController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/controllers/SessionController.js -------------------------------------------------------------------------------- /server/src/app/controllers/UrlController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/controllers/UrlController.js -------------------------------------------------------------------------------- /server/src/app/controllers/UserController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/controllers/UserController.js -------------------------------------------------------------------------------- /server/src/app/dto/UrlDto.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/dto/UrlDto.js -------------------------------------------------------------------------------- /server/src/app/dto/UserDto.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/dto/UserDto.js -------------------------------------------------------------------------------- /server/src/app/middlewares/authMiddleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/middlewares/authMiddleware.js -------------------------------------------------------------------------------- /server/src/app/repositories/UrlRepository.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/repositories/UrlRepository.js -------------------------------------------------------------------------------- /server/src/app/repositories/UserRepository.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/repositories/UserRepository.js -------------------------------------------------------------------------------- /server/src/app/services/session/CreateSessionService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/services/session/CreateSessionService.js -------------------------------------------------------------------------------- /server/src/app/services/url/CreateUrlService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/services/url/CreateUrlService.js -------------------------------------------------------------------------------- /server/src/app/services/url/DeleteUrlService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/services/url/DeleteUrlService.js -------------------------------------------------------------------------------- /server/src/app/services/url/DetailUrlService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/services/url/DetailUrlService.js -------------------------------------------------------------------------------- /server/src/app/services/url/ListUrlService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/services/url/ListUrlService.js -------------------------------------------------------------------------------- /server/src/app/services/url/RedirectUrlService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/services/url/RedirectUrlService.js -------------------------------------------------------------------------------- /server/src/app/services/user/CreateUserService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/services/user/CreateUserService.js -------------------------------------------------------------------------------- /server/src/app/utils/SlugGenerator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/utils/SlugGenerator.js -------------------------------------------------------------------------------- /server/src/app/utils/checkUrlAvailability.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/app/utils/checkUrlAvailability.js -------------------------------------------------------------------------------- /server/src/database/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/database/index.js -------------------------------------------------------------------------------- /server/src/database/migrations/20201028105534_createUsersTable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/database/migrations/20201028105534_createUsersTable.js -------------------------------------------------------------------------------- /server/src/database/migrations/20201028105543_createUrlsTable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/database/migrations/20201028105543_createUrlsTable.js -------------------------------------------------------------------------------- /server/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/index.js -------------------------------------------------------------------------------- /server/src/routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/src/routes.js -------------------------------------------------------------------------------- /server/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/server/yarn.lock -------------------------------------------------------------------------------- /web/.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/.editorconfig -------------------------------------------------------------------------------- /web/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/.eslintrc.json -------------------------------------------------------------------------------- /web/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/.gitignore -------------------------------------------------------------------------------- /web/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/.prettierrc -------------------------------------------------------------------------------- /web/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/README.md -------------------------------------------------------------------------------- /web/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/package.json -------------------------------------------------------------------------------- /web/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/public/index.html -------------------------------------------------------------------------------- /web/src/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/App.js -------------------------------------------------------------------------------- /web/src/assets/images/demonstration.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/assets/images/demonstration.svg -------------------------------------------------------------------------------- /web/src/components/Button/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/Button/index.js -------------------------------------------------------------------------------- /web/src/components/Button/styles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/Button/styles.js -------------------------------------------------------------------------------- /web/src/components/Header/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/Header/index.js -------------------------------------------------------------------------------- /web/src/components/Header/styles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/Header/styles.js -------------------------------------------------------------------------------- /web/src/components/InputForm/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/InputForm/index.js -------------------------------------------------------------------------------- /web/src/components/InputForm/styles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/InputForm/styles.js -------------------------------------------------------------------------------- /web/src/components/Jumbotron/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/Jumbotron/index.js -------------------------------------------------------------------------------- /web/src/components/Jumbotron/styles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/Jumbotron/styles.js -------------------------------------------------------------------------------- /web/src/components/Layout/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/Layout/index.js -------------------------------------------------------------------------------- /web/src/components/LayoutAuthenticate/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/LayoutAuthenticate/index.js -------------------------------------------------------------------------------- /web/src/components/LayoutAuthenticate/styles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/LayoutAuthenticate/styles.js -------------------------------------------------------------------------------- /web/src/components/ModalCreateUrl/content.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/ModalCreateUrl/content.js -------------------------------------------------------------------------------- /web/src/components/ModalCreateUrl/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/ModalCreateUrl/index.js -------------------------------------------------------------------------------- /web/src/components/ModalCreateUrl/styles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/ModalCreateUrl/styles.js -------------------------------------------------------------------------------- /web/src/components/Title/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/Title/index.js -------------------------------------------------------------------------------- /web/src/components/Title/styles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/Title/styles.js -------------------------------------------------------------------------------- /web/src/components/ToggleTheme/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/ToggleTheme/index.js -------------------------------------------------------------------------------- /web/src/components/ToggleTheme/styles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/components/ToggleTheme/styles.js -------------------------------------------------------------------------------- /web/src/context/theme.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/context/theme.js -------------------------------------------------------------------------------- /web/src/context/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/context/user.js -------------------------------------------------------------------------------- /web/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/index.js -------------------------------------------------------------------------------- /web/src/pages/Dashboard/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/pages/Dashboard/index.js -------------------------------------------------------------------------------- /web/src/pages/Dashboard/styles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/pages/Dashboard/styles.js -------------------------------------------------------------------------------- /web/src/pages/Login/content.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/pages/Login/content.js -------------------------------------------------------------------------------- /web/src/pages/Login/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/pages/Login/index.js -------------------------------------------------------------------------------- /web/src/pages/Login/styles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/pages/Login/styles.js -------------------------------------------------------------------------------- /web/src/pages/Register/content.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/pages/Register/content.js -------------------------------------------------------------------------------- /web/src/pages/Register/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/pages/Register/index.js -------------------------------------------------------------------------------- /web/src/pages/Register/styles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/pages/Register/styles.js -------------------------------------------------------------------------------- /web/src/pages/UrlNotFound/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/pages/UrlNotFound/index.js -------------------------------------------------------------------------------- /web/src/pages/UrlNotFound/styles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/pages/UrlNotFound/styles.js -------------------------------------------------------------------------------- /web/src/routes/Router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/routes/Router.js -------------------------------------------------------------------------------- /web/src/routes/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/routes/index.js -------------------------------------------------------------------------------- /web/src/services/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/services/api.js -------------------------------------------------------------------------------- /web/src/styles/global.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/styles/global.js -------------------------------------------------------------------------------- /web/src/styles/themes/dark.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/styles/themes/dark.js -------------------------------------------------------------------------------- /web/src/styles/themes/light.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/styles/themes/light.js -------------------------------------------------------------------------------- /web/src/utils/formatDateHour.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/utils/formatDateHour.js -------------------------------------------------------------------------------- /web/src/utils/usePersistState.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/utils/usePersistState.js -------------------------------------------------------------------------------- /web/src/utils/useTheme.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/utils/useTheme.js -------------------------------------------------------------------------------- /web/src/utils/useUser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/src/utils/useUser.js -------------------------------------------------------------------------------- /web/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrendoSPinheiro/shrtn-it/HEAD/web/yarn.lock --------------------------------------------------------------------------------