{"id":19810373,"url":"https://github.com/elius94/express_react_redux_boilerplate","last_synced_at":"2026-01-27T18:34:18.680Z","repository":{"id":128919903,"uuid":"427447732","full_name":"Elius94/Express_React_Redux_Boilerplate","owner":"Elius94","description":"A ready to customize project to make a nice webapp using Node.js (Express.js) for the backend and React with Typescript and Redux for the frontend.","archived":false,"fork":false,"pushed_at":"2022-02-04T16:13:46.000Z","size":2573,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-30T12:54:29.535Z","etag":null,"topics":["boilerplate","boilerplate-template","create-react-app","express","expressjs","full-stack","fullstack-javascript","fullstack-javascript-boilerplate","javascript","node","node-js","nodejs","pm2","pm2-node","react","reactjs","redux","redux-thunk","restful-api","socket-io"],"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/Elius94.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":"2021-11-12T17:44:28.000Z","updated_at":"2023-06-25T13:57:51.000Z","dependencies_parsed_at":"2023-05-18T12:31:15.613Z","dependency_job_id":null,"html_url":"https://github.com/Elius94/Express_React_Redux_Boilerplate","commit_stats":null,"previous_names":[],"tags_count":2,"template":true,"template_full_name":null,"purl":"pkg:github/Elius94/Express_React_Redux_Boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elius94%2FExpress_React_Redux_Boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elius94%2FExpress_React_Redux_Boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elius94%2FExpress_React_Redux_Boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elius94%2FExpress_React_Redux_Boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Elius94","download_url":"https://codeload.github.com/Elius94/Express_React_Redux_Boilerplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elius94%2FExpress_React_Redux_Boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28817915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:01:38.485Z","status":"ssl_error","status_checked_at":"2026-01-27T18:01:27.499Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["boilerplate","boilerplate-template","create-react-app","express","expressjs","full-stack","fullstack-javascript","fullstack-javascript-boilerplate","javascript","node","node-js","nodejs","pm2","pm2-node","react","reactjs","redux","redux-thunk","restful-api","socket-io"],"created_at":"2024-11-12T09:21:05.739Z","updated_at":"2026-01-27T18:34:18.657Z","avatar_url":"https://github.com/Elius94.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## A nice boilerplate to start wit Node.js and React\n\nUse this repository to build a webapp with Express.js (backend) and React+Redux (frontend).\n\n[![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=elius94\u0026repo=Express_React_Redux_Boilerplate\u0026theme=github_dark\u0026show_icons=true)](https://github.com/Elius94/Express_React_Redux_Boilerplate)\n\nThis webapp uses RESTFULL APIs using HTTP Post messages.\nReact app talk with the server using a Bkconnect Js file.\n\nIn this example I use Postgres for DB.\n\n1. Prepare the PG database:\n    -     Make sure you have Postgres installed on your machine.\n    -     Make sure you have created the database and the user.\n    -     Go to ```./webserver/api/integrations/```\n    -     Uncomment the ```await initDb.dropDb()``` line if the db already exists.\n    -     Doing this the database will be initialized with the tables and the data defined in the folders ./webserver/api/integrations/db-definitions and ./webserver/api/integrations/fake-data:\n        1. db-definitions: \n            -     enumerations.js: defines the enumerated types.\n            -     tables.js: defines the tables and the relationships between them.\n            -     extensions.js: defines the postgres extensions used by the tables.\n        2. fake-data:\n            -     fake-data.js: defines the data to fill the tables.\n    -     Run the following command to create the database:\n        ```\n        node ./test-init-fake-db.js\n        ```\n\n2. Install backend env: \n    -     cd ./webserver/api/\n    -     cp .env.example .env # change the ip DB_HOST with your server ip: ex: 135.181.145.246\n    -     npm install\n    -     npm install '@pm2/io'\n    -     npm i -g pm2\n    - To test the DB db API you can run ```npm test``` (it use mocha)\n\n3. Install frontend env:\n    -     cd ../client/\n    -     cp .env.example .env\n    - adapt .env file to your backend ip address (if you run all in local you can leave 'localhost')\n    -     npm install\n    -     npm install -g serve\n    - if you are using the last Node.js version (17.x.x) you have to set this env variable on Linux ```export NODE_OPTIONS=--openssl-legacy-provider \u0026\u0026 npm run build```\n      on Windows you have to change the script object in package.json adding ```set NODE_OPTIONS=--openssl-legacy-provider``` to the build command, before react-scripts build: \n        ```json\n        ...\n        \"scripts\": {\n            \"start\": \"react-scripts start\",\n            \"build\": \"set NODE_OPTIONS=--openssl-legacy-provider \u0026\u0026 react-scripts build\", \n            \"test\": \"react-scripts test\",\n            \"eject\": \"react-scripts eject\"\n        },\n        ...\n        ```\n    -     npm run build\n\n4. Run both applications:\n    To run the applications you can do in different way:\n    1. Using PM2 server manager there is a ```ecosystem.config.js```, run it with this command in the root of the project:\n        - If pm2 is not install, you need to install it by typing ```npm i -g pm2```\n        - Start ecosystem with \n            ```sh\n                Pm2 Doc: https://pm2.keymetrics.io/docs/usage/startup/\n                # create pm2-root.service\n                pm2 startup\n                # run client and server\n                pm2 start ecosystem.config.js\n                # save config\n                pm2 save\n                # check logs\n                pm2 logs\n            ```\n    2. Manually you can run both apps in this way:\n        - Execute ```serve.sh``` script (it runs 'npm run start' on the backend and 'npm run serve' on the client) \n\n\n## Note:\nThe automated scripts must be executable with right permissions:\n\n    chmod +x ./install.sh\n    chmod +x ./serve.sh\n\nuse ```node -v``` to make shure to have the latest Node.js version.\n\nIn production mode:\n\nChange webserver/client/.env file --\u003e Comment Locallhost ip address and set it with your server public IP\n\n## Database:\n\nIn this example I use Postgres for DB but you can use any DB or other data storage (like MongoDB or even a NoSQL DB).\nFor exaple you can use a csv file or a json file. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felius94%2Fexpress_react_redux_boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felius94%2Fexpress_react_redux_boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felius94%2Fexpress_react_redux_boilerplate/lists"}