├── .env.example ├── .gitignore ├── LICENSE ├── README.md ├── assets ├── 287790227-1d3aeb53-965c-4c66-b90c-403203a5226c.png ├── 287793361-732acd6a-125a-4533-8df0-362de82c3341.png ├── 287793658-9f372a88-2101-4ed5-b1c6-e356b89ce4a3.png └── 287793822-bdc319bc-09bd-42c9-9b8b-56ead77cab2a.png ├── ecosystem.config.js ├── jest.config.js ├── knexfile.js ├── package.json ├── src ├── configs │ ├── auth.js │ └── upload.js ├── controllers │ ├── NotesController.js │ ├── SessionsController.js │ ├── TagsController.js │ ├── UserAvatarController.js │ └── UsersController.js ├── database │ ├── database.db │ ├── knex │ │ ├── index.js │ │ └── migrations │ │ │ ├── 20231202000915_createNotes.js │ │ │ ├── 20231202021110_createTags.js │ │ │ └── 20231202021513_createLinks.js │ └── sqlite │ │ ├── index.js │ │ └── migrations │ │ ├── createUsers.js │ │ └── index.js ├── middlewares │ └── ensureAuthenticated.js ├── providers │ └── DiskStorage.js ├── repositories │ ├── NotesRepository.js │ ├── NotesRepositoryInMemory.js │ ├── SessionsRepository.js │ ├── SessionsRepositoryInMemory.js │ ├── TagsRepository.js │ ├── TagsRepositoryInMemory.js │ ├── UserRepository.js │ └── UserRepositoryInMemory.js ├── routes │ ├── index.js │ ├── notes.routes.js │ ├── sessions.routes.js │ ├── tags.routes.js │ └── users.routes.js ├── server.js ├── services │ ├── notes │ │ ├── NoteCreateService.js │ │ ├── NoteDeleteService.js │ │ ├── NoteIndexService.js │ │ ├── NoteShowService.js │ │ ├── noteCreateService.spec.js │ │ ├── noteDeleteService.spec.js │ │ ├── noteIndexService.spec.js │ │ └── noteShowService.spec.js │ ├── sessions │ │ ├── SessionCreateService.js │ │ └── sessionCreateService.spec.js │ ├── tags │ │ ├── TagShowService.js │ │ └── tagShowService.spec.js │ └── users │ │ ├── UserAvatarService.js │ │ ├── UserCreateService.js │ │ ├── UserUpdateService.js │ │ ├── userAvatarService.spec.js │ │ ├── userCreateService.spec.js │ │ └── userUpdateService.spec.js └── utils │ └── AppError.js └── tmp ├── .gitkeep └── uploads ├── .gitkeep ├── d47378b091e3a89d2161-91148692.jpeg └── db9b0f2f00f01969118c-pexels-veeterzy-39811.jpg /.env.example: -------------------------------------------------------------------------------- 1 | AUTH_SECRET= 2 | SERVER_PORT= -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .env -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/README.md -------------------------------------------------------------------------------- /assets/287790227-1d3aeb53-965c-4c66-b90c-403203a5226c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/assets/287790227-1d3aeb53-965c-4c66-b90c-403203a5226c.png -------------------------------------------------------------------------------- /assets/287793361-732acd6a-125a-4533-8df0-362de82c3341.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/assets/287793361-732acd6a-125a-4533-8df0-362de82c3341.png -------------------------------------------------------------------------------- /assets/287793658-9f372a88-2101-4ed5-b1c6-e356b89ce4a3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/assets/287793658-9f372a88-2101-4ed5-b1c6-e356b89ce4a3.png -------------------------------------------------------------------------------- /assets/287793822-bdc319bc-09bd-42c9-9b8b-56ead77cab2a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/assets/287793822-bdc319bc-09bd-42c9-9b8b-56ead77cab2a.png -------------------------------------------------------------------------------- /ecosystem.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/ecosystem.config.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/jest.config.js -------------------------------------------------------------------------------- /knexfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/knexfile.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/package.json -------------------------------------------------------------------------------- /src/configs/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/configs/auth.js -------------------------------------------------------------------------------- /src/configs/upload.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/configs/upload.js -------------------------------------------------------------------------------- /src/controllers/NotesController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/controllers/NotesController.js -------------------------------------------------------------------------------- /src/controllers/SessionsController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/controllers/SessionsController.js -------------------------------------------------------------------------------- /src/controllers/TagsController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/controllers/TagsController.js -------------------------------------------------------------------------------- /src/controllers/UserAvatarController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/controllers/UserAvatarController.js -------------------------------------------------------------------------------- /src/controllers/UsersController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/controllers/UsersController.js -------------------------------------------------------------------------------- /src/database/database.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/database/database.db -------------------------------------------------------------------------------- /src/database/knex/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/database/knex/index.js -------------------------------------------------------------------------------- /src/database/knex/migrations/20231202000915_createNotes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/database/knex/migrations/20231202000915_createNotes.js -------------------------------------------------------------------------------- /src/database/knex/migrations/20231202021110_createTags.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/database/knex/migrations/20231202021110_createTags.js -------------------------------------------------------------------------------- /src/database/knex/migrations/20231202021513_createLinks.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/database/knex/migrations/20231202021513_createLinks.js -------------------------------------------------------------------------------- /src/database/sqlite/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/database/sqlite/index.js -------------------------------------------------------------------------------- /src/database/sqlite/migrations/createUsers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/database/sqlite/migrations/createUsers.js -------------------------------------------------------------------------------- /src/database/sqlite/migrations/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/database/sqlite/migrations/index.js -------------------------------------------------------------------------------- /src/middlewares/ensureAuthenticated.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/middlewares/ensureAuthenticated.js -------------------------------------------------------------------------------- /src/providers/DiskStorage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/providers/DiskStorage.js -------------------------------------------------------------------------------- /src/repositories/NotesRepository.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/repositories/NotesRepository.js -------------------------------------------------------------------------------- /src/repositories/NotesRepositoryInMemory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/repositories/NotesRepositoryInMemory.js -------------------------------------------------------------------------------- /src/repositories/SessionsRepository.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/repositories/SessionsRepository.js -------------------------------------------------------------------------------- /src/repositories/SessionsRepositoryInMemory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/repositories/SessionsRepositoryInMemory.js -------------------------------------------------------------------------------- /src/repositories/TagsRepository.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/repositories/TagsRepository.js -------------------------------------------------------------------------------- /src/repositories/TagsRepositoryInMemory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/repositories/TagsRepositoryInMemory.js -------------------------------------------------------------------------------- /src/repositories/UserRepository.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/repositories/UserRepository.js -------------------------------------------------------------------------------- /src/repositories/UserRepositoryInMemory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/repositories/UserRepositoryInMemory.js -------------------------------------------------------------------------------- /src/routes/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/routes/index.js -------------------------------------------------------------------------------- /src/routes/notes.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/routes/notes.routes.js -------------------------------------------------------------------------------- /src/routes/sessions.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/routes/sessions.routes.js -------------------------------------------------------------------------------- /src/routes/tags.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/routes/tags.routes.js -------------------------------------------------------------------------------- /src/routes/users.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/routes/users.routes.js -------------------------------------------------------------------------------- /src/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/server.js -------------------------------------------------------------------------------- /src/services/notes/NoteCreateService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/notes/NoteCreateService.js -------------------------------------------------------------------------------- /src/services/notes/NoteDeleteService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/notes/NoteDeleteService.js -------------------------------------------------------------------------------- /src/services/notes/NoteIndexService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/notes/NoteIndexService.js -------------------------------------------------------------------------------- /src/services/notes/NoteShowService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/notes/NoteShowService.js -------------------------------------------------------------------------------- /src/services/notes/noteCreateService.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/notes/noteCreateService.spec.js -------------------------------------------------------------------------------- /src/services/notes/noteDeleteService.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/notes/noteDeleteService.spec.js -------------------------------------------------------------------------------- /src/services/notes/noteIndexService.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/notes/noteIndexService.spec.js -------------------------------------------------------------------------------- /src/services/notes/noteShowService.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/notes/noteShowService.spec.js -------------------------------------------------------------------------------- /src/services/sessions/SessionCreateService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/sessions/SessionCreateService.js -------------------------------------------------------------------------------- /src/services/sessions/sessionCreateService.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/sessions/sessionCreateService.spec.js -------------------------------------------------------------------------------- /src/services/tags/TagShowService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/tags/TagShowService.js -------------------------------------------------------------------------------- /src/services/tags/tagShowService.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/tags/tagShowService.spec.js -------------------------------------------------------------------------------- /src/services/users/UserAvatarService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/users/UserAvatarService.js -------------------------------------------------------------------------------- /src/services/users/UserCreateService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/users/UserCreateService.js -------------------------------------------------------------------------------- /src/services/users/UserUpdateService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/users/UserUpdateService.js -------------------------------------------------------------------------------- /src/services/users/userAvatarService.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/users/userAvatarService.spec.js -------------------------------------------------------------------------------- /src/services/users/userCreateService.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/users/userCreateService.spec.js -------------------------------------------------------------------------------- /src/services/users/userUpdateService.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/services/users/userUpdateService.spec.js -------------------------------------------------------------------------------- /src/utils/AppError.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/src/utils/AppError.js -------------------------------------------------------------------------------- /tmp/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tmp/uploads/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tmp/uploads/d47378b091e3a89d2161-91148692.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/tmp/uploads/d47378b091e3a89d2161-91148692.jpeg -------------------------------------------------------------------------------- /tmp/uploads/db9b0f2f00f01969118c-pexels-veeterzy-39811.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsouloficial/Rocketnotes-Backend/HEAD/tmp/uploads/db9b0f2f00f01969118c-pexels-veeterzy-39811.jpg --------------------------------------------------------------------------------