{"id":42523866,"url":"https://github.com/hexlet-components/js-fastify-blog","last_synced_at":"2026-01-28T15:36:13.101Z","repository":{"id":44634616,"uuid":"386733784","full_name":"hexlet-components/js-fastify-blog","owner":"hexlet-components","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-02T09:28:06.000Z","size":643,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-02T22:16:47.980Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://js-fastify-blog.hexlet.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/hexlet-components.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":"2021-07-16T18:45:50.000Z","updated_at":"2024-05-02T09:28:09.000Z","dependencies_parsed_at":"2024-04-24T10:59:54.872Z","dependency_job_id":null,"html_url":"https://github.com/hexlet-components/js-fastify-blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hexlet-components/js-fastify-blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexlet-components%2Fjs-fastify-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexlet-components%2Fjs-fastify-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexlet-components%2Fjs-fastify-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexlet-components%2Fjs-fastify-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexlet-components","download_url":"https://codeload.github.com/hexlet-components/js-fastify-blog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexlet-components%2Fjs-fastify-blog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-28T15:36:12.999Z","updated_at":"2026-01-28T15:36:13.066Z","avatar_url":"https://github.com/hexlet-components.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JS Fastify Blog\n\n[![Main](https://github.com/hexlet-components/js-fastify-blog/actions/workflows/main.yml/badge.svg)](https://github.com/hexlet-components/js-fastify-blog/actions/workflows/main.yml)\n\n## Requirement\n\n* NodeJS v20.6.1\n* Sqlite или PostgreSQL\n\n## Commands\n\n```bash\nmake install\nmake dev\n```\n\n## Run tests with Postgres\n\nTo run tests with Postgres, you need to edit *config/config.cjs* and under the `test` key comment out the use of SQLite and uncomment the environment variables\n\n```js\n  // test: {\n  //   dialect: 'sqlite',\n  //   storage: './database.test.sqlite',\n  // },\n  test: {\n    dialect: 'postgres',\n    database: process.env.DATABASE_NAME,\n    username: process.env.DATABASE_USERNAME,\n    password: process.env.DATABASE_PASSWORD,\n    port: process.env.DATABASE_PORT,\n    host: process.env.DATABASE_HOST,\n  },\n```\n\nSpecify environment variables manually or prepare a *.env* file with the command\n\n```bash\nmake prepare-env\n```\n\nIn it specify the data to connect to the database\n\n```dotenv\nDATABASE_NAME=postgres\nDATABASE_USERNAME=postgres\nDATABASE_PASSWORD=postgres\nDATABASE_PORT=5432\nDATABASE_HOST=localhost\n```\n\n## Running an application with Postgres (production)\n\nExport environment variables to work with the database or prepare a *.env* file with variables\n\nRun\n\n```bash\nmake build # build assets\nmake start # Open in browser: http://localhost:8080\n```\n\n---\n\n[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](https://hexlet.io?utm_source=github\u0026utm_medium=link\u0026utm_campaign=js-fastify-blog)\n\nThis repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io?utm_source=github\u0026utm_medium=link\u0026utm_campaign=js-fastify-blog).\n\nSee most active contributors on [hexlet-friends](https://friends.hexlet.io/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexlet-components%2Fjs-fastify-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexlet-components%2Fjs-fastify-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexlet-components%2Fjs-fastify-blog/lists"}