{"id":17643464,"url":"https://github.com/xizon/fullstack-react-ssr-app-template","last_synced_at":"2025-05-07T00:24:01.946Z","repository":{"id":41673515,"uuid":"254096017","full_name":"xizon/fullstack-react-ssr-app-template","owner":"xizon","description":"A full-stack sample web application based on React+TypeScript+Babel+Webpack+Jest (+Redux+Express) that creates a simple whole-website architecture with Server-Side Rendering (SSR).","archived":false,"fork":false,"pushed_at":"2023-04-25T15:55:07.000Z","size":4488,"stargazers_count":13,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-12T02:33:01.097Z","etag":null,"topics":["express","expressjs","frontend","react","react-router","redux","scaffold","server-side-rendering","ssr","template","typescript","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/xizon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2020-04-08T13:30:02.000Z","updated_at":"2024-05-01T12:32:02.000Z","dependencies_parsed_at":"2024-10-12T02:32:42.426Z","dependency_job_id":"0c5c8969-15bc-451b-9f42-85d0f298be68","html_url":"https://github.com/xizon/fullstack-react-ssr-app-template","commit_stats":{"total_commits":44,"total_committers":2,"mean_commits":22.0,"dds":0.09090909090909094,"last_synced_commit":"f38a61eba575af6cb63cf2a0618334ed67ca645d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xizon%2Ffullstack-react-ssr-app-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xizon%2Ffullstack-react-ssr-app-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xizon%2Ffullstack-react-ssr-app-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xizon%2Ffullstack-react-ssr-app-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xizon","download_url":"https://codeload.github.com/xizon/fullstack-react-ssr-app-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221111141,"owners_count":16758039,"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":["express","expressjs","frontend","react","react-router","redux","scaffold","server-side-rendering","ssr","template","typescript","webpack"],"created_at":"2024-10-23T09:04:53.036Z","updated_at":"2024-10-23T09:04:53.754Z","avatar_url":"https://github.com/xizon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Full-Stack React SSR Application Template\n\nThis repository is a full-stack sample web application based on React+TypeScript+Babel+Webpack+Jest (+Redux+Express) that creates a simple whole-website architecture with Server-Side Rendering (SSR), and provides the foundational services, components, and plumbing needed to get a basic web application up and running. \n\n    \n## Demo\n\nServer runs on `http://localhost:3000`\n\n\n## Table of Contents\n\n* [File Structures](#file-structures)\n* [Getting Started](#getting-started)\n* [Deploy on Custom Server](#deploy-on-custom-server)\n* [Contributing](#contributing)\n* [Changelog](#changelog)\n* [Licensing](#licensing)\n\n\n* * *\n\n\n## File Structures\n\n\n\n```sh\n\nfullstack-react-ssr-app-template/\n├── README.md\n├── CHANGELOG.md\n├── CONTRIBUTING.md\n├── LICENSE\n├── ecosystem.config.js  #for pm2\n├── babel.config.js\n├── webpack.config.js\n├── package-lock.json\n├── package.json\n├── test/\n├── public/\n│   ├── index.html\n│   └── assets/\n├── dist/\n│   ├── css/\n│   │   ├── app.css\n│   │   ├── app.css.map\n│   │   ├── app.min.css\n│   │   └── app.min.css.map\n│   └── js/\n│   │   ├── app.js\n│   │   ├── app.js.map\n│   │   ├── app.min.js\n│   │   └── app.min.js.map\n├── src/\n│   ├── client/\n│   │   ├── client.js\n│   │   ├── actions/\n│   │   ├── reducers/\n│   │   ├── router/\n│   │   ├── components/   #Independent React components\n│   │   ├── views/\n│   │   │   ├── _pages/\n│   │   │   └── _html/\n│   └── server/\n│   │   ├── app.js\n│   │   ├── server.js\n│   │   └── renderer.js\n│   └── store/\n│   │   └── createStore.js\n└──\n```\n\n\n\n\n## Getting Started\n\nYou will need to have [node](https://nodejs.org/) setup on your machine. That will output the built distributables to `./dist/*` and `./public/*.html`.\n\n\n**Step 1.** Use NPM (Locate your current directory of project, and enter the following command.) or download the latest version from [Github](https://github.com/xizon/fullstack-react-ssr-app-template). For nodejs you have to install some dependencies.\n\n```sh\n$ sudo npm install fullstack-react-ssr-app-template\n```\n\nOr clone the repo to get all source files including build scripts: \n\n```sh\n$ git clone git://github.com/xizon/fullstack-react-ssr-app-template.git\n```\n\n\n**Step 2.** First, using an absolute path into your `\"fullstack-react-ssr-app-template/\"` folder directory.\n\n```sh\n$ cd /{your_directory}/fullstack-react-ssr-app-template\n```\n\n\n**Step 3.** Before doing all dev stuff make sure you have `Node 10+` installed. After that, run the following code in the main directory to install the node module dependencies.\n\n```sh\n$ sudo npm install\n```\n\n\n**Step 4.** Commonly used commands:\n\nDebug application. It can be checked separately as TypeScript without compiling and packaging behavior.\n\n```sh\n$ npm run check\n```\n\nTo use webpack to bundle files.\n\n```sh\n$ npm run build\n```\n\nRun the following commands for local testing and code inspection. You can see that the server is running. (Run the Express server only.). Using `Ctrl + C` to stop it.\n\n```sh\n$ npm run dev\n```\n\n\n**Step 5.** When you done, this will spin up a server that can be accessed at\n\n```sh\nhttp://localhost:3000\n```\n\nThe new code is recommended to be bundled before debugging.\n\n\n**Step 6 (Optional).** Unit Testing\n\n```sh\n$ npm run test\n```\n\n\n\u003cblockquote\u003e\n\u003ch3\u003e💡 Note:\u003c/h3\u003e\n \n**a) ERROR: npm update check failed.**\n\nSolution:\n\n```sh\n$ sudo chown -R $USER:$(id -gn $USER) /Users/{username}/.config\n```\n\n**b) ERROR: Node sass version 6.x.x is not compatible with ^ 4.x.x.**\n\nSolution:\n\n```sh\n$ npm install node-sass@4.14.1\n```\n\n\n**c) If you upgrade the version of Node, please execute the following code:**\n\n```sh\n$ sudo npm install\n$ sudo npm rebuild node-sass\n```\n\u003c/blockquote\u003e\n\n\n\n## Deploy on Custom Server\n\nYou can use PM2 to deploy to Nginx server, see the example [poemkit](https://github.com/xizon/poemkit#deploy-on-custom-server)\n\n\n\n## Contributing\n\nFinding bugs, sending pull requests or improving our docs - any contribution is welcome and highly appreciated. To get started, head over to our [contribution guidelines](CONTRIBUTING.md). Thanks!\n\n\n## Changelog\n\n[releases](CHANGELOG.md)\n\n\n## Supported development environment\n\n- React 17 +\n- TypeScript 4.x.x + \n- Babel 7.x.x + \n- Webpack 5.x.x\n- Jest 27.x.x\n- Express 4.x.x\n\n\n\n## Licensing\n\nLicensed under the [MIT](https://opensource.org/licenses/MIT).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxizon%2Ffullstack-react-ssr-app-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxizon%2Ffullstack-react-ssr-app-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxizon%2Ffullstack-react-ssr-app-template/lists"}