All Projects → tahnik → React Expressjs

tahnik / React Expressjs

Licence: mit
Simple and compact boilerplate for ReactJS project with expressJS

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Expressjs

Serverless Prisma
AWS Serverless Prisma Boilerplate
Stars: ✭ 126 (-39.42%)
Mutual labels:  webpack, babel, boilerplate
React Pages Boilerplate
Deliver react + react-router application to gh-pages
Stars: ✭ 134 (-35.58%)
Mutual labels:  webpack, babel, boilerplate
React Redux Graphql Apollo Bootstrap Webpack Starter
react js + redux + graphQL + Apollo + react router + hot reload + devTools + bootstrap + webpack starter
Stars: ✭ 127 (-38.94%)
Mutual labels:  webpack, boilerplate, react-router-v4
Typescript Webpack React Redux Boilerplate
React and Redux with TypeScript
Stars: ✭ 182 (-12.5%)
Mutual labels:  webpack, babel, boilerplate
Styled React Boilerplate
Minimal & Modern boilerplate for building apps with React & styled-components
Stars: ✭ 198 (-4.81%)
Mutual labels:  webpack, babel, boilerplate
Simple Boilerplate
A simple webpack boilerplate for your comfortable work with HTML, JS and CSS.
Stars: ✭ 116 (-44.23%)
Mutual labels:  webpack, babel, boilerplate
Electron Vue
An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
Stars: ✭ 14,610 (+6924.04%)
Mutual labels:  webpack, babel, boilerplate
Frontie Webpack
Front-end Boilerplate | Gulp 4 + Webpack 4 + Babel + ITCSS Architecture + BEM Methodology + Twig.js
Stars: ✭ 102 (-50.96%)
Mutual labels:  webpack, babel, boilerplate
Js Stack Boilerplate
Final boilerplate code of the JavaScript Stack from Scratch tutorial –
Stars: ✭ 145 (-30.29%)
Mutual labels:  webpack, babel, boilerplate
Iceberg
Front-End Boilerplate built with React + Babel + Webpack + SASS
Stars: ✭ 144 (-30.77%)
Mutual labels:  webpack, babel, boilerplate
React Redux Auth0 Kit
Minimal starter boilerplate project with CRA, React, Redux, React Router and Auth0 authentication
Stars: ✭ 115 (-44.71%)
Mutual labels:  webpack, babel, boilerplate
Essential React
A minimal skeleton for building testable React apps using Babel
Stars: ✭ 2,035 (+878.37%)
Mutual labels:  webpack, babel, boilerplate
Universal React Redux
🧐 A sensible universal starter kit for React + Redux
Stars: ✭ 112 (-46.15%)
Mutual labels:  webpack, babel, react-router-v4
Static Site Boilerplate
A better workflow for building modern static websites.
Stars: ✭ 1,633 (+685.1%)
Mutual labels:  webpack, babel, boilerplate
React Bootstrap Webpack Starter
ReactJS 16.4 + new React Context API +react Router 4 + webpack 4 + babel 7+ hot Reload + Bootstrap 4 + styled-components
Stars: ✭ 103 (-50.48%)
Mutual labels:  webpack, babel, react-router-v4
Webpack Starter
✨ A lightweight foundation for your next webpack based frontend project.
Stars: ✭ 1,745 (+738.94%)
Mutual labels:  webpack, babel, boilerplate
The Ultimate Boilerplate
webpack 2, react hotloader 3, react router v4, code splitting and more
Stars: ✭ 85 (-59.13%)
Mutual labels:  webpack, boilerplate, react-router-v4
React Boilerplate
This project is deprecated. Please use CRA instead.
Stars: ✭ 88 (-57.69%)
Mutual labels:  webpack, babel, boilerplate
Project Webcube
Continuously updated JS infrastructure for modern web dev
Stars: ✭ 141 (-32.21%)
Mutual labels:  webpack, babel, boilerplate
React Redux Universal Boilerplate
An Universal ReactJS/Redux Boilerplate
Stars: ✭ 165 (-20.67%)
Mutual labels:  webpack, babel, boilerplate

Behold the ReactJS + ExpressJS Boilerplate

I wrote an article about this repo which explains the structure.

This is a boilerplate to use ReactJS, ExpressJS, Redux and React Router v4 in a project.

  • ReactJS - The state based framework for your Views
  • React Router v4 - For routing to different paths
  • Redux - Redux manages your state
  • Babel - The compiler to compile your JS files with es6, es7, JSX syntax to regular javascript
  • Webpack - The module binder which takes all your JS files from different directories and compiles them into a single app.bundle.js (you can change the filename of course) so you can include it in a HTML page
  • ExpressJS - The node framework to serve your views to the world when they hit the server at example.com or example.com/awesome.html

Installation

Node Version: v9.0.0^

Just clone this repo or download the zip file. cd into the directory and run

npm install

Developing App with Hot Reload

To develop your own react application, you can take advantage of React Hot Loader and Webpack Dev Server. To develop app with hot reload:

npm run dev

Now you can access your react application on http://localhost:8080

Production build and Deploy

To make a production build of your project, run the following commands

npm run build

This will create create two files: index.js in server/public/js and server.js in server/bin.

server.js will be used for serving the application on port 3000 and index.js is the actual react app itself.

Finally run

npm start

The you will be able to access this app from http://localhost:3000.

To get a distributable tarball of your application, run this command

npm pack

Remember that you have to run npm run build before doing this. This will create a tar.gz file in your root folder. The contents in this file is deployable. All you need to do is copy the contents inside package folder inside this tar.gz file to your server and run the app with something like pm2.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].