{"id":17766098,"url":"https://github.com/thedevelop3r/tourist-backend-nodejs","last_synced_at":"2025-04-01T13:43:43.952Z","repository":{"id":159409726,"uuid":"594871178","full_name":"Thedevelop3r/Tourist-Backend-nodejs","owner":"Thedevelop3r","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-30T12:25:14.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T08:48:52.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Thedevelop3r.png","metadata":{"files":{"readme":"readme.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-29T21:58:37.000Z","updated_at":"2023-01-29T22:18:45.000Z","dependencies_parsed_at":"2023-05-05T14:16:26.682Z","dependency_job_id":null,"html_url":"https://github.com/Thedevelop3r/Tourist-Backend-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thedevelop3r%2FTourist-Backend-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thedevelop3r%2FTourist-Backend-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thedevelop3r%2FTourist-Backend-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thedevelop3r%2FTourist-Backend-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thedevelop3r","download_url":"https://codeload.github.com/Thedevelop3r/Tourist-Backend-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246651423,"owners_count":20811991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-26T20:23:30.976Z","updated_at":"2025-04-01T13:43:43.943Z","avatar_url":"https://github.com/Thedevelop3r.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\n\n# install Mysql server in your computer\n# port Mysql port should be 3306 when configuring it and create a database in  mysql\n\n\n# edit the .env file in the root dir of the project\n\n\nDB_NAME=tour   # change to your db name\nDB_USER=root        # change to your db user\nDB_PASSWORD=admin   # your db password\nHOST=localhost      # your host\nDIALECT=mysql       # database schema mysql for sequelize\nPORT=7000           # port of your choice\n\n\n## install dependecies\n\nnpm i\n\n## start server\n\nnpm run start\n\n## start server in dev\n\nnpm run dev\n\n## API,s\n\nreplace \u003cport\u003e with your choice port\ncurrently it localhost:7000\n\n## Create User\n# Method POST\nhttp://localhost:\u003cport\u003e/api/users/create\n\nrequire params in req.body\n\n    1: username\n    2: password\n\n## Get All Users\n# Method GET\nhttp://localhost:\u003cport\u003e/api/users/all\n\nno params required\n\n    get all users\n\n\n# Create Roles\n# Method POST\nhttp://localhost:\u003cport\u003e/api/roles/create\n\nsend params in req.body\n\n    1: userId\n    2: roleId\n\n## Get All Roles\n# Method GET\nhttp://localhost:\u003cport\u003e/api/roles/all\n\nno params required\n\n    get all roles\n\n# Create Permissions\n# Method POST\nhttp://localhost:\u003cport\u003e/api/permissions/create\n\nsend params in req.body\n\n    1: title\n    2: modelType\n    3: method\n\n## Get All Permissions\n# Method GET\nhttp://localhost:\u003cport\u003e/api/permissions/all\n\nno params required\n\n    get all permissions\n\n# Create User Roles\n# Method POST\nhttp://localhost:\u003cport\u003e/api/user-roles/create\n\nsend params in req.body\n\n    1: userId\n    2: roleId\n\n## Get All User Roles\n# Method GET\nhttp://localhost:\u003cport\u003e/api/user-roles/all\n\nno params required\n\n    get all user roles\n\n# Create Roles Permission\n# Method POST\nhttp://localhost:\u003cport\u003e/api/roles-permission/create\n\nsend params in req.body\n\n    1: roleId\n    2: permissionId\n\n## Get All Roles Permission\n# Method GET\nhttp://localhost:\u003cport\u003e/api/roles-permission/all\n\nno params required\n\n    get all user roles permission\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedevelop3r%2Ftourist-backend-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedevelop3r%2Ftourist-backend-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedevelop3r%2Ftourist-backend-nodejs/lists"}