All Projects โ†’ Mastermindzh โ†’ React Express Fullstack

Mastermindzh / React Express Fullstack

Licence: mit
Full stack (mostly unopinionated) starter pack with React+Redux and Expressjs

Programming Languages

javascript
184084 projects - #8 most used programming language
es6
455 projects

Projects that are alternatives of or similar to React Express Fullstack

Typescript Express Starter
๐Ÿš€ TypeScript Express Starter
Stars: โœญ 238 (+934.78%)
Mutual labels:  eslint, sequelize, mysql, express, nginx
Crate
๐Ÿ‘• ๐Ÿ‘– ๐Ÿ“ฆ A sample web and mobile application built with Node, Express, React, React Native, Redux and GraphQL. Very basic replica of stitchfix.com / krate.in (allows users to get monthly subscription of trendy clothes and accessories).
Stars: โœญ 2,281 (+9817.39%)
Mutual labels:  babel, sequelize, mysql, express
React Ssr Setup
React Starter Project with Webpack 4, Babel 7, TypeScript, CSS Modules, Server Side Rendering, i18n and some more niceties
Stars: โœญ 678 (+2847.83%)
Mutual labels:  eslint, babel, express
Mostly
They mostly come at night; mostly.
Stars: โœญ 78 (+239.13%)
Mutual labels:  eslint, babel, express
Sequelize
An easy-to-use and promise-based multi SQL dialects ORM tool for Node.js
Stars: โœญ 25,422 (+110430.43%)
Mutual labels:  mysql, mssql, sequelize
Express Babel
Express starter kit with ES2017+ support, testing, linting, and code coverage
Stars: โœญ 621 (+2600%)
Mutual labels:  eslint, babel, express
Express React Boilerplate
๐Ÿš€๐Ÿš€๐Ÿš€ This is a tool that helps programmers create Express & React projects easily base on react-cool-starter.
Stars: โœญ 32 (+39.13%)
Mutual labels:  eslint, babel, express
Js Stack Boilerplate
Final boilerplate code of the JavaScript Stack from Scratch tutorial โ€“
Stars: โœญ 145 (+530.43%)
Mutual labels:  eslint, babel, express
Aclify
๐Ÿ”’ Node Access Control Lists (ACL).
Stars: โœญ 49 (+113.04%)
Mutual labels:  sequelize, mysql, express
Generator Angular Fullstack
Yeoman generator for an Angular app with an Express server
Stars: โœญ 6,135 (+26573.91%)
Mutual labels:  babel, sequelize, full-stack
Express Mongoose Es6 Rest Api
๐Ÿ’ฅ A boilerplate application for building RESTful APIs Microservice in Node.js using express and mongoose in ES6 with code coverage and JsonWebToken Authentication
Stars: โœญ 2,811 (+12121.74%)
Mutual labels:  eslint, babel, express
Vue2 blog
ไฝฟ็”จvue2.x + vue-cli +vue-router+ vuex + axios + mysql + express + pm2 + webpack+nginxๆž„ๅปบ็š„ๅ…ทๆœ‰็™ปๅฝ•๏ผŒๆณจๅ†Œ๏ผŒ็•™่จ€๏ผŒ็”จๆˆทๅ‘ๅธ–๏ผŒ็”จๆˆท่ฏ„่ฎบ็ญ‰ๅŠŸ่ƒฝ็š„SPA Blogใ€‚ๆณจๆ„๏ผŒๆณจๆ„๏ผŒๆณจๆ„๏ผŒๅŽ็ซฏAPIๅ…จ้ƒจ่‡ชๅทฑๆ‰‹ๅ†™๏ผŒๅพˆ้€‚ๅˆๅˆšๅญฆไน vueไปฅๅŠexpress็š„ๅฐไผ™ไผดๅญฆไน ๏ผŒๅ–œๆฌข่ฏทStar้ผ“ๅŠฑไธ€ไธ‹ๆˆ‘๏ผŒ่ฐข่ฐข๏ผ้กน็›ฎ้ข„่งˆ๏ผš
Stars: โœญ 417 (+1713.04%)
Mutual labels:  mysql, express, nginx
Online Bling
Stars: โœญ 9 (-60.87%)
Mutual labels:  babel, sequelize, express
Simple Universal React Redux
The simplest possible Async Universal React & Redux Boilerplate app, that works on both Mac and Windows
Stars: โœญ 58 (+152.17%)
Mutual labels:  eslint, babel, express
Meme Studio
๐Ÿ“Œ A complete and fast website building in React/Express for creating and sharing "internet memes"
Stars: โœญ 51 (+121.74%)
Mutual labels:  sequelize, express, fullstack
React Redux Saucepan
A minimal and universal react redux starter project. With hot reloading, linting and server-side rendering
Stars: โœญ 86 (+273.91%)
Mutual labels:  eslint, babel, express
Prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite & MongoDB (Preview)
Stars: โœญ 18,168 (+78891.3%)
Mutual labels:  mysql, sql-server, mssql
Express Webpack React Redux Typescript Boilerplate
๐ŸŽ‰ A full-stack boilerplate that using express with webpack, react and typescirpt!
Stars: โœญ 156 (+578.26%)
Mutual labels:  eslint, babel, express
react-full-stack-starter
๐ŸŽˆFull-stack React boilerplate using `create-react-app`, Babel, Node.js, and express
Stars: โœญ 22 (-4.35%)
Mutual labels:  babel, full-stack, fullstack
Fullstack Javascript Architecture
โœ๏ธ Opinionated project architecture for Full-Stack JavaScript Applications.
Stars: โœญ 464 (+1917.39%)
Mutual labels:  express, fullstack, nginx

Node + react full stack

This is a full stack Nodejs + React starter pack which tries to make as few decisions as possible.

It includes:

  • Docker
    • nginx
    • mysql / mssql (default is mysql)
    • node
    • sphinx
  • ExpressJS
  • Swagger
  • React + Redux
  • Babel
  • Material design
  • Sequelize (ORM)
  • Sphinx-doc

First start

Starting this app is easy, simply run yarn docker-dev (or npm run docker-dev) and wait for all services to come online.

The following urls will become available:

Url Service
http://localhost:3000 The frontend React application
http://localhost:8888 The read-the-docs (/Sphinx) documentation
http://localhost:4000 The ExpressJS backend
http://localhost:4000/docs Swagger documentation for the backend

See the Available commands chapter for more info.

Table of contents

Available commands

The commands found below can be executed either with yarn command or with npm run command.

useful commands

Command Description
start runs the services without docker
docker-dev runs the services with docker (recommended)
docker-prod runs buildservices for the frontend and documentation and after that spins up the production environment.
docker-rebuild rebuilds docker containers (f.e after changing the dockerfile)
docker-fix takes the containers down (impatient people use ctrl + c and have to take them down before starting them again)

Commands used by useful command

Command Description
start-frontend runs the frontend without docker
start-backend runs the backend without docker
start-docs runs the documentation without docker
dev runs all of the above
docker-build-prod runs the build services in docker

Changing the starter

The chapters below will guide you through changing the starter to fit your own style.

Change to mssql

In order to change to mssql follow the following steps:

  1. run npm uninstall --save mysql2 in the backend folder
  2. delete config.json in the backend/config folder
  3. rename config.sqlserver.json in the backend/config folder to config.json
  4. uncomment the mssql block and comment in (or remove) the mysql block.
    • docker/dev/docker-compose.yml
    • docker/prod/docker-compose.yml

Create a database (error: login failed for user sa)

You'll most likely get a database error if you launch the starter as is, to resolve this use the following command while running the containers:

docker exec -ti dev_backend_1 /app/node_modules/.bin/sequelize db:create

Then either restart your containers or trigger nodemon in the backend folder

Change database host

Open up backend/config/config.json and edit the database connection info.

Note If your database lives in the same dockernetwork use the docker's name (sql-server in the example) and it's internal port.

Changing database docker

This starter comes with 2 sql-server dockers. By default the mysql server will be used but all docker-compose files have an entry for mssql. Simply change out the mysql block for the mssql block and rebuild your containers with: yarn docker-rebuild

Remove material design

You can basically put any React project in the frontend folder as long as it includes an npm start script.
The current react project that is in the frontend folder is the react-sane-starter's material branch. Follow the instructions below to include the non-material branch.

  1. rm -rf frontend
  2. git clone https://github.com/Mastermindzh/react-sane-starter.git frontend
  3. rm -rf frontend/.git

Remove sequelize

To fully remove sequelize execute the following steps in the backend folder:

  1. rm -rf migrations models seeders

  2. rm config/config.json

  3. npm unsinstall --save sequelize

  4. Remove the following code from server.js

    // sequelize
    import models from "./models";
    
    models.sequelize
      .sync()
      .then(function() {
        /* eslint-disable no-console */
        console.log("database tables synced");
      })
      .catch(err => {
        /* eslint-disable no-console */
        console.log(err);
      });
    

Folder structures

The chapters below list important files / folders in the subfolders

Documentation

documentation/
โ”œโ”€โ”€ make.bat // Windows makefile
โ”œโ”€โ”€ Makefile // Linux / OS X makefile
โ”œโ”€โ”€ package.json // runner
โ”œโ”€โ”€ package-lock.json
โ”œโ”€โ”€ requirements.txt // required packages for sphinx
โ””โ”€โ”€ source // actual documentation
    โ”œโ”€โ”€ conf.py //sphinx settings
    โ”œโ”€โ”€ content // text directory
    โ”‚   โ”œโ”€โ”€ 10-playground
    โ”‚   โ”‚   โ”œโ”€โ”€ banners.rst
    โ”‚   โ”‚   โ””โ”€โ”€ index.rst
    โ”‚   โ””โ”€โ”€ 20-playground-md
    โ”‚       โ””โ”€โ”€ index.md
    โ”œโ”€โ”€ index.rst // main page
    โ””โ”€โ”€ _static // static files (images, pdfs, etc) directory
        โ””โ”€โ”€ logo.png

Backend

backend/
โ”œโ”€โ”€ config // configuration files
โ”‚   โ”œโ”€โ”€ config.json
โ”‚   โ””โ”€โ”€ swagger.json
โ”œโ”€โ”€ data // swaggerize-express data (add your code here)
โ”‚   โ”œโ”€โ”€ dashboards
โ”‚   โ”‚   โ””โ”€โ”€ {id}.js
โ”‚   โ”œโ”€โ”€ dashboards.js
โ”‚   โ””โ”€โ”€ mockgen.js
โ”œโ”€โ”€ handlers // swaggerize-express handlers
โ”‚   โ”œโ”€โ”€ dashboards
โ”‚   โ”‚   โ””โ”€โ”€ {id}.js
โ”‚   โ””โ”€โ”€ dashboards.js
โ”œโ”€โ”€ migrations // sequelize migrations
โ”œโ”€โ”€ models // sequelize models
โ”‚   โ”œโ”€โ”€ dashboard.js
โ”‚   โ””โ”€โ”€ index.js
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ package-lock.json
โ”œโ”€โ”€ routes // custom express routes
โ”œโ”€โ”€ seeders // seed scripts for sequelize
โ”œโ”€โ”€ server.js // main starting point
โ”œโ”€โ”€ services // services directory (database services etc.)
โ”‚   โ””โ”€โ”€ errorService.js // service to handle errors
โ””โ”€โ”€ tests // tests directory
    โ”œโ”€โ”€ dashboards
    โ”‚   โ””โ”€โ”€ {id}.js
    โ””โ”€โ”€ dashboards.js

Docker

docker/
โ”œโ”€โ”€ dev // contains the dev docker-compose file(s)
โ”‚   โ””โ”€โ”€ docker-compose.yml
โ”œโ”€โ”€ images // contains Dockerfiles for images
โ”‚   โ”œโ”€โ”€ nginx
โ”‚   โ”‚   โ”œโ”€โ”€ default.conf
โ”‚   โ”‚   โ””โ”€โ”€ Dockerfile
โ”‚   โ”œโ”€โ”€ node
โ”‚   โ”‚   โ””โ”€โ”€ Dockerfile
โ”‚   โ””โ”€โ”€ node-sphinx
โ”‚       โ””โ”€โ”€ Dockerfile
โ””โ”€โ”€ prod // contains the production docker-compose file(s)
    โ”œโ”€โ”€ build // contains the build services
    โ”‚   โ”œโ”€โ”€ docker-compose.yml
    โ”‚   โ””โ”€โ”€ Dockerfile
    โ””โ”€โ”€ docker-compose.yml

Frontend

frontend/
โ”œโ”€โ”€ docker
โ”‚   โ”œโ”€โ”€ dev  // Development docker-compose and dockerfile
โ”‚   โ”‚   โ”œโ”€โ”€ docker-compose.yml
โ”‚   โ”‚   โ””โ”€โ”€ Dockerfile
โ”‚   โ””โ”€โ”€ prod // Production docker files
โ”‚       โ”œโ”€โ”€ docker-compose.yml
โ”‚       โ”œโ”€โ”€ Dockerfile
โ”‚       โ””โ”€โ”€ default.conf // nginx conf for javascript SPA's
โ”‚
โ”œโ”€โ”€ docs // directory for your documentation
โ”‚
โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ actions // actions go here
โ”‚   โ”œโ”€โ”€ assets // directory for statis assets
โ”‚   โ”œโ”€โ”€ components // dumb components go here
โ”‚   โ”œโ”€โ”€ constants // constants can be declared here
โ”‚   โ”œโ”€โ”€ containers // smart components go here
โ”‚   โ”œโ”€โ”€ reducers // reducers go here
โ”‚   โ”œโ”€โ”€ store
โ”‚   โ”œโ”€โ”€ styles // scss + css
โ”‚   โ”œโ”€โ”€ tests // global test files
โ”‚   โ”œโ”€โ”€ utils // utility classes / objects
โ”‚   โ”œโ”€โ”€ favicon.ico
โ”‚   โ”œโ”€โ”€ index.js
โ”‚   โ”œโ”€โ”€ index.ejs
โ”‚   โ””โ”€โ”€ webpack-public-path.js
โ”‚
โ”œโ”€โ”€ tools // webpack tools, build tools, etc.
โ”‚
โ”œโ”€โ”€ .babel.json
โ”œโ”€โ”€ .editorconfig
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ .istanbul.yml // test coverage config
โ”œโ”€โ”€ .jslintrc.json
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ webpack.config.dev.js
โ””โ”€โ”€ webpack.config.prod.js
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].