{"id":15095858,"url":"https://github.com/itsleonb/post-article","last_synced_at":"2026-01-07T11:17:04.207Z","repository":{"id":253583431,"uuid":"843674582","full_name":"itsLeonB/post-article","owner":"itsLeonB","description":"A web app for managing article posts","archived":false,"fork":false,"pushed_at":"2024-08-17T21:28:45.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T17:44:17.686Z","etag":null,"topics":["gin","golang","mysql","react","rest-api","typescript","vite"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/itsLeonB.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":"2024-08-17T04:37:51.000Z","updated_at":"2024-08-17T21:31:53.000Z","dependencies_parsed_at":"2024-08-17T22:32:30.555Z","dependency_job_id":"92c97040-79ed-4d1e-8de6-54de1f126437","html_url":"https://github.com/itsLeonB/post-article","commit_stats":null,"previous_names":["itsleonb/post-article"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsLeonB%2Fpost-article","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsLeonB%2Fpost-article/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsLeonB%2Fpost-article/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsLeonB%2Fpost-article/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsLeonB","download_url":"https://codeload.github.com/itsLeonB/post-article/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245852619,"owners_count":20683066,"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":["gin","golang","mysql","react","rest-api","typescript","vite"],"created_at":"2024-09-25T15:42:43.853Z","updated_at":"2026-01-07T11:17:04.151Z","avatar_url":"https://github.com/itsLeonB.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Post Article\n\nA web app for managing article posts.\n\nAPI Documentation can be accessed through [Postman](https://documenter.getpostman.com/view/29785588/2sA3s9BnCK)\n\n## Available Features\n\n-   Post new article\n-   List all articles\n-   Get an article\n-   Edit an article\n-   Delete an article\n\n## Prerequisites\n\nThis project is built using:\n\n### Backend\n\n-   Go v1.19.13\n-   MySQL 9.0.1-1.el9\n-   Gin v1.10.0\n-   Go MySQL Driver v1.8.1\n\n### Frontend\n\n-   TypeScript\n-   React\n-   Vite\n\n## Installation\n\n### Backend\n\n1. Clone the project and change directory to backend/api.\n\n    ```sh\n    cd backend/api\n    ```\n\n2. Run these commands:\n\n    ```sh\n    # tidy dependencies\n    go mod tidy\n\n    # create env file from example\n    cp .env.example .env\n    ```\n\n3. Change the values in `.env` to your own values. Set the `APP_ENV` value in `.env` to either `release` (for production use) or `debug` for development use.\n\n4. Run the SQL files in `/backend/db` with your favorite DB connection driver to migrate the database and required tables.\n\n5. Run the file `/backend/db/seed/seed.sql` with your favorite DB connection driver for seeding required data.\n\n6. (optional) Run the file `/backend/db/seed/example.sql` with your favorite DB connection driver for seeding example data.\n\n7. Serve the app with `go run .`\n\n### Frontend\n\n1. Clone the project and change directory to frontend.\n\n    ```sh\n    cd frontend\n    ```\n\n2. Install dependencies with npm\n\n    ```sh\n    npm install\n    ```\n\n3. Generate a new .env file\n\n    ```sh\n    cp .env.example .env\n    ```\n\n4. Change the VITE_BASE_URL value according to the backend `BASE_URL`\n\n5. Start the server or build to static files\n\n    ```sh\n    npm run dev # for running the server\n    # or\n    npm run build # for building the project\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsleonb%2Fpost-article","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsleonb%2Fpost-article","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsleonb%2Fpost-article/lists"}