{"id":22886946,"url":"https://github.com/itsawa/img_hosting","last_synced_at":"2025-03-31T19:13:13.685Z","repository":{"id":260366899,"uuid":"864522094","full_name":"ITSawa/Img_Hosting","owner":"ITSawa","description":"A simple service image hosting","archived":false,"fork":false,"pushed_at":"2024-10-03T08:21:36.000Z","size":21691,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T19:12:49.764Z","etag":null,"topics":["hosting","images","server","service"],"latest_commit_sha":null,"homepage":"","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/ITSawa.png","metadata":{"files":{"readme":"README","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":"2024-09-28T12:51:59.000Z","updated_at":"2024-12-05T19:32:36.000Z","dependencies_parsed_at":"2024-10-30T23:42:46.241Z","dependency_job_id":null,"html_url":"https://github.com/ITSawa/Img_Hosting","commit_stats":null,"previous_names":["itsawa/image_hosting","itsawa/img_hosting"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITSawa%2FImg_Hosting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITSawa%2FImg_Hosting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITSawa%2FImg_Hosting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITSawa%2FImg_Hosting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ITSawa","download_url":"https://codeload.github.com/ITSawa/Img_Hosting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246523874,"owners_count":20791444,"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":["hosting","images","server","service"],"created_at":"2024-12-13T20:28:51.869Z","updated_at":"2025-03-31T19:13:13.655Z","avatar_url":"https://github.com/ITSawa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Project Setup and Launch Guide\nDatabase Setup\nBefore using the application, you need to set up the required databases within Docker environments.\n\nInitialize Docker Environments\nNavigate to the Docker directory:\n\nbash\n\ncd ./docker/\nStart the Docker environments:\n\nbash\n\nnode docker_boot.js start\nThis command will start two Docker environments necessary for the project.\n\nAuth Server Database Setup\nAccess the Docker container for the Auth Server:\n\nbash\n\nsudo docker-compose exec db psql -U imagehosting_users_admin -d imagehosting_users\nCreate the users table by executing the following SQL command:\n\nsql\n\nCREATE TABLE users (\n    id SERIAL PRIMARY KEY,\n    name VARCHAR(255),\n    email VARCHAR(255),\n    password VARCHAR(255),\n    created_at TIMESTAMP,\n    client_id VARCHAR(255),\n    role VARCHAR(255)\n);\nGallery Server Database Setup\nAccess the Docker container for the Gallery Server:\n\nbash\n\nsudo docker-compose exec db psql -U imagehosting_galery_admin -d imagehosting_galery\nCreate the gallery table by executing the following SQL command:\n\nsql\n\nCREATE TABLE gallery (\n    id SERIAL PRIMARY KEY,\n    owner_id INT,\n    owner_name VARCHAR(255),\n    image_address VARCHAR(255),\n    created_at TIMESTAMP,\n    views INT,\n    file_label VARCHAR(255),\n    public BOOLEAN\n);\nEnvironment Variables\nYou also need to create environment variable files (.env) for both the Auth Server and the Gallery Server.\n\nFor the Auth Server, create an .env file in the ./auth_server/ directory.\nFor the Gallery Server, create an .env file in the ./storage_server/controllers/ directory.\nConfigure Ports\nYou can configure the ports by editing the .env files or directly in the service_starter.js file located in the ./dev_ops/ directory. Note that the ports defined in service_starter.js have the highest priority.\n\nStart the Project\nTo start the project, run the following command in the ./dev_ops directory:\n\nbash\n\nnpm start\nAlternatively, you can start it with:\n\nbash\n\nnode services_starter.js\nBy following these steps, you will have your project environment set up and ready to run. Ensure all configurations are correctly applied to avoid any issues during runtime.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsawa%2Fimg_hosting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsawa%2Fimg_hosting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsawa%2Fimg_hosting/lists"}