![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
create-react-app-fullstack
Advanced tools
Readme
1.2.0 - Added 'backstart' functionality
1.1.0 - Eject Prompts
1.0.0 - Initial release
npm i -g create-react-app
npm i -g create-react-app-fullstack
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.
After the fullstack completes, run the command below to add dummy data to the database: npm run seed
Before getting started, seed the database with dummy data by running:
npm run seed
After the database is seeded, you should be all set. To enable front-end development with hot-reloading, use the same script as create-react-app. This does not listen to updates on the back-end:
npm run start
To automate updates from back-end and front-end development, you can run the script below. The difference between this script and the one above: hot-reloading is disabled. Requires navigating to the localhost and refreshing the page:
npm run fullstart
As the project gets larger, the 'fullstack' command can take time to rebuild the back-end and front-end. This command listens for back-end updates only. In the first step, front-end components are built as static files (this happens only once). After this step, the script listens to server updates with nodemon. Use this for back-end updates when 'fullstart' takes too long to rebuild.
npm run backstart
To build deployment-ready, we use the same script as create-react-app:
npm run build
After this, you can test your back-end code on the built static files:
nodemon server
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 preliminary.
FAQs
Turn create-react-app into a fullstack app by adding Express and Sequelize
The npm package create-react-app-fullstack receives a total of 2 weekly downloads. As such, create-react-app-fullstack popularity was classified as not popular.
We found that create-react-app-fullstack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.