{"id":26235738,"url":"https://github.com/dxtaner/projectpostapp","last_synced_at":"2026-04-10T14:37:29.474Z","repository":{"id":178047478,"uuid":"615811201","full_name":"dxtaner/ProjectPostApp","owner":"dxtaner","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-02T14:23:32.000Z","size":1078,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-12-02T15:27:29.063Z","etag":null,"topics":["docker","firebase","golang","postapp","postgresql-database","reactjs","volumes"],"latest_commit_sha":null,"homepage":"https://project-post-app.vercel.app","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/dxtaner.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}},"created_at":"2023-03-18T18:40:43.000Z","updated_at":"2023-12-02T14:20:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"baee7788-0901-4d3c-ab8e-1753b4ecbebe","html_url":"https://github.com/dxtaner/ProjectPostApp","commit_stats":null,"previous_names":["dxtaner/projectpostapp"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2FProjectPostApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2FProjectPostApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2FProjectPostApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2FProjectPostApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dxtaner","download_url":"https://codeload.github.com/dxtaner/ProjectPostApp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243330305,"owners_count":20274039,"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":["docker","firebase","golang","postapp","postgresql-database","reactjs","volumes"],"created_at":"2025-03-13T03:17:42.485Z","updated_at":"2025-12-27T18:38:22.035Z","avatar_url":"https://github.com/dxtaner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"PostApp\n======================\n\n\nDocker Compose PostApp\n======================\n\nThis is a basic configuration to start the PostApp application using Docker Compose. It consists of two services: a PostgreSQL database server and a React application.\n\nUsage\n-----\n\n1.  Install Docker Compose on your computer: [Docker Compose Installation](https://docs.docker.com/compose/install/)\n2.  Navigate to the project directory:\n\n    cd postapp-docker-compose\n    \n\n3.  Start the application with Docker Compose:\n\n    docker-compose up -d\n    \n\n4.  Access the React application by opening [http://localhost:3000](http://localhost:3000) in your browser.\n5.  Use the following information for the database connection:\n\n*   Host: localhost\n*   Port: 5439\n*   Database: postgres\n*   Username: postgres\n*   Password: depixen-pass\n\nServices\n--------\n\n### db\n\n*   Container name: postapp\n*   A container that includes a PostgreSQL database server.\n*   Configures POSTGRES\\_PASSWORD, POSTGRES\\_DB, and POSTGRES\\_USER environment variables.\n*   Port: 5439 (mapped to port 5432 on the local machine)\n*   Uses a Docker volume to store the database data.\n\n### react-app\n\n*   Container name: react-postapp\n*   A container that includes the React application.\n*   Port: 3000\n*   Depends on the db service, so it won't start until the db service is up.\n\nDocker Data Volume\n------------------\n\n*   depixen-volume: A Docker volume used to store the data of the PostgreSQL database container.\n\nPostApp GoLang\n=======\n\nPostApp is a simple RESTful API application that allows users to manage posts. It provides endpoints to retrieve, create, update, and delete posts.\n\nPrerequisites\n-------------\n\nBefore running the application, make sure you have the following installed:\n\n*   Go programming language\n*   gorilla/mux package\n*   jinzhu/gorm package\n\nInstallation\n------------\n\n1.  Clone the repository:\n\n    git clone https://github.com/your-username/PostApp.git\n    \n\n2.  Change to the project directory:\n\n    cd PostApp\n    \n\n3.  Install the dependencies:\n\n    go mod download\n    \n\nUsage\n-----\n\nTo run the application, execute the following command:\n\n    go run main.go\n    \n\nThe application will start listening on `localhost` at port `8000` by default.\n\nAPI Endpoints\n-------------\n\nThe following API endpoints are available:\n\n*   `GET /api/posts` - Retrieve all posts\n*   `GET /api/posts/{id}` - Retrieve a specific post by ID\n*   `POST /api/posts` - Create a new post\n*   `DELETE /api/posts/{id}` - Delete a post by ID\n*   `PATCH /api/posts/{id}` - Update a post by ID\n\nExample Usage\n-------------\n\nAssuming the application is running on `localhost:8000`, you can interact with the API endpoints using tools like cURL or Postman.\n\nTo retrieve all posts:\n\n    GET http://localhost:8000/api/posts\n    \n\nTo retrieve a specific post:\n\n    GET http://localhost:8000/api/posts/{id}\n    \n\nTo create a new post:\n\n    POST http://localhost:8000/api/posts\n    \n    Request Body:\n    {\n      \"title\": \"New Post\",\n      \"description\": \"This is a new post\",\n      \"imageuri\": \"https://example.com/image.jpg\"\n    }\n    \n\nTo delete a post:\n\n    DELETE http://localhost:8000/api/posts/{id}\n    \n\nTo update a post:\n\n    PATCH http://localhost:8000/api/posts/{id}\n    \n    Request Body:\n    {\n      \"title\": \"Updated Post\",\n      \"description\": \"This post has been updated\",\n      \"imageuri\": \"https://example.com/new-image.jpg\"\n    }\n    \n\nContributing\n------------\n\nContributions to the project are welcome. If you find any issues or want to add new features, please open an issue or submit a pull request.\n\nLicense\n-------\n\nThis project is licensed under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxtaner%2Fprojectpostapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdxtaner%2Fprojectpostapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxtaner%2Fprojectpostapp/lists"}