{"id":41793502,"url":"https://github.com/kkamara/nodejs-reactjs-boilerplate","last_synced_at":"2026-01-25T05:08:42.435Z","repository":{"id":61507500,"uuid":"394685266","full_name":"kkamara/nodejs-reactjs-boilerplate","owner":"kkamara","description":"(22-Jun-2021) An MVC NodeJS boilerplate with ReactJS 19 Redux SPA.","archived":false,"fork":false,"pushed_at":"2025-12-29T14:25:27.000Z","size":11377,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-01T17:43:01.039Z","etag":null,"topics":["api","react","reactjs","testing","tests","web","web-app"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kkamara.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-08-10T14:30:27.000Z","updated_at":"2025-12-29T14:25:30.000Z","dependencies_parsed_at":"2025-11-28T22:03:09.093Z","dependency_job_id":null,"html_url":"https://github.com/kkamara/nodejs-reactjs-boilerplate","commit_stats":null,"previous_names":["kkamara/nodejs-reactjs-boilerplate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kkamara/nodejs-reactjs-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkamara%2Fnodejs-reactjs-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkamara%2Fnodejs-reactjs-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkamara%2Fnodejs-reactjs-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkamara%2Fnodejs-reactjs-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkamara","download_url":"https://codeload.github.com/kkamara/nodejs-reactjs-boilerplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkamara%2Fnodejs-reactjs-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28744421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T02:46:29.005Z","status":"ssl_error","status_checked_at":"2026-01-25T02:44:29.968Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["api","react","reactjs","testing","tests","web","web-app"],"created_at":"2026-01-25T05:08:42.370Z","updated_at":"2026-01-25T05:08:42.425Z","avatar_url":"https://github.com/kkamara.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![nodejs-reactjs-boilerplate.png](https://github.com/kkamara/useful/blob/main/nodejs-reactjs-boilerplate.png?raw=true)\n\n![nodejs-reactjs-boilerplate2.png](https://github.com/kkamara/useful/blob/main/nodejs-reactjs-boilerplate2.png?raw=true)\n\n# nodejs-reactjs-boilerplate\n\n(22-Jun-2021) An MVC NodeJS boilerplate with ReactJS 19 Redux SPA.\n\n* [Using Postman?](#postman)\n\n* [Important Note](#important-note)\n\n* [Installation](#installation)\n\n* [Usage](#usage)\n\n* [Using Docker?](#using-docker)\n\n* [Mail Server With Docker](#mail-server-with-docker)\n\n* [API Tests](#api-tests)\n\n* [Misc.](#misc)\n\n* [Contributing](#contributing)\n\n* [License](#license)\n\n\u003ca name=\"postman\"\u003e\u003c/a\u003e\n## Using Postman?\n\n[Get Postman HTTP client](https://www.postman.com).\n\n[Postman API Collection for NodeJS ReactJS Boilerplate](https://github.com/kkamara/nodejs-reactjs-boilerplate/blob/main/nodejs-reactjs-boilerplate.postman_collection.json).\n\n[Postman API Environment for NodeJS ReactJS Boilerplate](https://github.com/kkamara/nodejs-reactjs-boilerplate/blob/main/nodejs-reactjs-boilerplate.postman_environment.json).\n\n## Important Note\n\nYou should remove `config.json` from version-control because all database credentials are stored there.\n\nFor database usage in pipelines, I recommend creating a `testing_config.json` and adding database commands to `package.json`, like `migrate:test` and `seed:all:test`.\n\n## Installation\n\n* [NodeJS](https://nodejs.org/en/).\n\n```bash\n# Create our environment file.\n# Update values in .env file like port and timezone.\n# Not using Docker?\ncp .env.example .env\n# Using Docker?\ncp .env.docker .env\n# Install Yarn globally.\nnpm install --global yarn\n# Install our app dependencies.\nyarn\n# Before running the next command:\n# Update your database details in config.json\nyarn migrate\nyarn seed:all\n```\n\n#### Frontend Installation\n\n```bash\ncd frontend\nyarn\nyarn build\n```\n\n#### Sequelize tutorial\n\nSee [package.json](https://github.com/kkamara/nodejs-reactjs-boilerplate/blob/main/package.json) for helpful commands related to using the database.\n\n```bash\n# Docs:\n#   https://sequelize.org/docs/v6/other-topics/migrations/\n# Running a specific database seeder\nNODE_ENV=development npx sequelize-cli db:seed --seed 20230814135938-demo-user.js\n# Creating a model \u0026 migration\nNODE_ENV=development npx sequelize-cli model:generate --name User --attributes firstName:string,lastName:string,email:string\n# Creating a migration\nNODE_ENV=development npx sequelize-cli migration:generate --name migration-skeleton\n# Running migrations\nNODE_ENV=development npx sequelize-cli db:migrate\n# Revert the most recent migration\nNODE_ENV=development npx sequelize-cli db:migrate:undo\n# Revert to a specific migration\nNODE_ENV=development npx sequelize-cli db:migrate:undo:all --to XXXXXXXXXXXXXX-create-posts.js\n# Creating a seed (fake database data) to simulate production environment\nNODE_ENV=development npx sequelize-cli seed:generate --name demo-user\n# Running seeds\nNODE_ENV=development npx sequelize-cli db:seed:all\n# Undo the latest seed\nNODE_ENV=development npx sequelize-cli db:seed:undo\n# Undo all seeds\nNODE_ENV=development npx sequelize-cli db:seed:undo:all\n```\n\n## Usage\n\n```bash\nyarn start # Runs Start-script `yarn node src/app.js`\n# Serves app to http://localhost:8000 .\n# Serves API to http://localhost:8000/api/v1 .\n#   Example API route: http://localhost:8000/api/health .\n```\n\n#### Reload server on project files change\n\n```bash\nyarn dev\n```\n\n#### Reload server and frontend app on project files change\n\n```bash\nyarn dev:frontend\n```\n\n\u003ca name=\"using-docker\"\u003e\u003c/a\u003e\n## Using docker?\n\n* [Docker](https://docs.docker.com/engine/install/) \n* [Docker Compose](https://docs.docker.com/compose/install/).\n\n```bash\ncp .env.docker .env\ndocker-compose up --build -d\n```\n\n## Mail Server With Docker\n\n![docker-mailhog.png](https://raw.githubusercontent.com/kkamara/useful/main/docker-mailhog.png)\n\nMail environment credentials are at [.env.docker](https://raw.githubusercontent.com/kkamara/nodejs-reactjs-boilerplate/main/.env.docker).\n\nThe [Mailhog](https://github.com/mailhog/MailHog) Docker image runs at `http://localhost:8025`in this app.\n\n## API Tests\n\n```bash\nNODE_ENV=test yarn test\n```\n\n## Misc.\n\n* [See NodeJS ReactJS Boilerplate](https://github.com/kkamara/nodejs-reactjs-boilerplate)\n\n* [See ReactJS Native Mobile App Boilerplate](https://github.com/kkamara/ReactJSNativeMobileAppBoilerplate)\n\n* [See MRVL Desktop](https://github.com/kkamara/mrvl-desktop)\n\n* [See MRVL Web](https://github.com/kkamara/mrvl-web)\n\n* [See NodeJS Docker Skeleton](https://github.com/kkamara/nodejs-docker-skeleton)\n\n* [See NodeJS Scraper](https://github.com/kkamara/nodejs-scraper).\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[BSD](https://opensource.org/licenses/BSD-3-Clause)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkamara%2Fnodejs-reactjs-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkamara%2Fnodejs-reactjs-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkamara%2Fnodejs-reactjs-boilerplate/lists"}