{"id":15772485,"url":"https://github.com/raunofreiberg/blackford","last_synced_at":"2026-04-09T15:54:34.071Z","repository":{"id":107729140,"uuid":"106710387","full_name":"raunofreiberg/blackford","owner":"raunofreiberg","description":"Dockerized Node.js \u0026 PostgreSQL SPA with a React \u0026 Redux client","archived":false,"fork":false,"pushed_at":"2018-03-29T16:03:51.000Z","size":1106,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T03:56:04.134Z","etag":null,"topics":["css-modules","docker","express","javascript","jsx","knex","nginx","nodejs","passportjs","postgresql","react","redux","scss","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raunofreiberg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-10-12T15:22:45.000Z","updated_at":"2025-02-20T23:19:52.000Z","dependencies_parsed_at":"2023-06-08T21:15:24.920Z","dependency_job_id":null,"html_url":"https://github.com/raunofreiberg/blackford","commit_stats":{"total_commits":124,"total_committers":3,"mean_commits":"41.333333333333336","dds":0.3467741935483871,"last_synced_commit":"a748e7cca617800cac981046a5627706ecabfaef"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raunofreiberg%2Fblackford","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raunofreiberg%2Fblackford/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raunofreiberg%2Fblackford/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raunofreiberg%2Fblackford/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raunofreiberg","download_url":"https://codeload.github.com/raunofreiberg/blackford/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246465250,"owners_count":20781919,"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":["css-modules","docker","express","javascript","jsx","knex","nginx","nodejs","passportjs","postgresql","react","redux","scss","webpack"],"created_at":"2024-10-04T15:22:50.717Z","updated_at":"2025-12-30T18:59:55.099Z","avatar_url":"https://github.com/raunofreiberg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Coverage Status](https://coveralls.io/repos/github/raunofreiberg/blackford/badge.svg?branch=master)](https://coveralls.io/github/raunofreiberg/blackford?branch=master)\n[![Build Status](https://travis-ci.org/raunofreiberg/blackford.svg?branch=master)](https://travis-ci.org/raunofreiberg/blackford)\n\n# Full Stack PERN (Postgres, Express, React, Node)\n\n#### Technologies Used\n\n- Node: 8.9.x\n- Express: 4.15.x\n- KnexJS: 0.13.x\n- PostgreSQL: 9.6.x\n- Docker CE\n- Nginx\n- PassportJS with JWT for authentication\n  - Local authentication\n  - Facebook OAuth\n- React: 16\n- Redux: 3.7.x\n- Jest 21.x\n- React-Router: 4.1.x\n- Redux-Form: 6.8.x\n- CSS Modules\n- Webpack 3.x\n\n\n#### Development Setup (Non-Docker variant)\n\n* Create a database\n\n```\n$ createdb DB_NAME\n```\n\n* Create a .env file at the root of your application and update it with your env variables.\n\n```\nDATABASE_URL=postgres://localhost/\u003cDB_NAME\u003e // URL of your database\nTOKEN_SECRET=\u003cSECRET\u003e // Signature for signing JWT's\nCLIENT_SECRET=\u003cCLIENT_SECRET\u003e // Facebook app secret\nCLIENT_ID=\u003cCLIENT_ID\u003e // Facebook client ID\nFACEBOOK_APP_ID=\u003cFACEBOOK_APP_ID\u003e // Facebook app ID\n```\n\n* Install dependencies\n\n```\n$ npm install\n$ npm install -g knex // database connection wrapper - you probably don't have this\n```\n\n* Run the migrations provided by this repo\n\n```\n$ knex migrate:latest\n```\n\n* Run the client and server concurrently\n\n```\n$ npm run dev\n```\n\n* You should be able to see the application at `localhost:8080`. All API requests are proxied to the Node.js server running at port 3001\n\n\n#### Docker\n\n* Set some env variables for the Docker-compose.yml file\n\n```\nTOKEN_SECRET=\u003cSECRET\u003e // Signature for signing JWT's\nCLIENT_SECRET=\u003cCLIENT_SECRET\u003e // Facebook app secret\nCLIENT_ID=\u003cCLIENT_ID\u003e // Facebook client ID\nFACEBOOK_APP_ID=\u003cFACEBOOK_APP_ID\u003e // Facebook app ID\n```\n\n* Run it\n\n```\n$ docker-compose up\n```\n\n* Application is available at localhost:3001. No `webpack-dev-server` is used inside Docker, just a regular webpack watch instead.\n\n#### Production\n\n```\n$ docker-compose -f Docker-compose.prod.yml up\n```\n\n¯\\_(ツ)_/¯","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraunofreiberg%2Fblackford","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraunofreiberg%2Fblackford","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraunofreiberg%2Fblackford/lists"}