Socket
Socket
Sign inDemoInstall

create-react-app-fullstack

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-react-app-fullstack

Turn create-react-app into a fullstack app by adding Express and Sequelize


Version published
Weekly downloads
9
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

create-react-app-fullstack


chalk

The Stack

  • PostgreSQL
  • Sequelize
  • Node/Express.js
  • React
  • Redux
  • React-Router

Versions

2.0.0

  • Substantial updates and new architecture
  • Removed different start options (backstart, fullstart, etc). Fullstack functionality is now present in npm run start. Used a 'proxy' instead of middleware to the Webpack Dev Server. Reload times are substantially faster.
  • Added redux, including react-redux, redux-thunk, redux-logger, and react-router-redux.
  • Added axios.

1.5.0

Update with create-react-app changes (v 1.3.0), updated to work with new react-router (version 4.1.0), switched back to browserHistory

1.4.0

Bug fixes

1.3.0

Switched from "browserHistory" to "hashHistory" for React Router. React Router was conflicting with Express in the dev environment. You can change to browserHistory prior to a build.

1.2.0

Added 'backstart' functionality

1.1.0

Eject Prompts

1.0.0

Initial release

Installation


npm i -g create-react-app
npm i -g create-react-app-fullstack

Getting Started


This is designed for ground up full-stack development. Start by creating your database with PostgreSQL (you can do this after running 'fullstack' as well):
createdb <my-app>

After creating your database, initialize a create-react-app with the same name (the name match is default functionality, overriding this is straightforward):

create-react-app <my-app>
cd <my-app>
fullstack

After running fullstack, confirm that you want to eject and the remaining steps will update your app with Express and Sequelize.

The second prompt confirms that you want to run fullstack on your project. The process will add/overwrite/remove files in your src, db, server, and scripts folders, so this prompt is a security net. Since you're likely running this function at the beginning of a project, it shouldn't be an issue. After accepting the prompt, the project will install dependencies and template files.

remember to seed the database!

After the fullstack completes, run the command below to add dummy data to the database: npm run seed


Commands

seed

Before getting started, seed the database with dummy data by running:

npm run seed

start

After the database is seeded, you should be all set. To enable full-stack development with hot-reloading, use the same script as create-react-app:

npm run start

build

To build deployment-ready, we use the same script as create-react-app:

npm run build

References and Props


Much of this work was inspired and built from the resources below:

Currently, this repo adds Express and Sequelize to the mix for create-react-app. On the backlog are Redux and SASS, but some of the links above already have functionality for that.

Last, this project was built at a hackathon at Full Stack Academy. Development is ongoing.

Keywords

FAQs

Package last updated on 13 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc