|
2 | 2 |
|
3 | 3 | [](https://app.travis-ci.com/github/neonexus/sails-react-bootstrap-webpack)
|
4 | 4 | [](https://codecov.io/gh/neonexus/sails-react-bootstrap-webpack)
|
5 |
| -[](https://sailsjs.com) |
6 |
| -[](https://react.dev) |
7 |
| -[](https://getbootstrap.com) |
8 |
| -[](https://webpack.js.org) |
| 5 | +[](https://sailsjs.com) |
| 6 | +[](https://react.dev) |
| 7 | +[](https://getbootstrap.com) |
| 8 | +[](https://webpack.js.org) |
9 | 9 |
|
10 | 10 | [](http://discord.gg/Y5K73E84Tc)
|
11 | 11 |
|
12 |
| -This is an easily-modifiable, opinionated, [Sails v1](https://sailsjs.com) base application, using [Webpack](https://webpack.js.org) to handle [Bootstrap](https://getbootstrap.com) |
13 |
| -(using [SASS](https://sass-lang.com)) and [React](https://react.dev) builds. It is designed such that, one can build multiple React frontends (an admin panel, and a customer site maybe), that use the |
14 |
| -same API backend. This allows developers to easily share React components across different frontends / applications. Also, because the backend and frontend are in the same repo (and the frontend is |
15 |
| -compiled before it is handed to the end user), they can share [NPM](http://npmjs.com) libraries, like [Moment.js](https://momentjs.com) |
| 12 | +This is a starter application, built on [Sails v1](https://sailsjs.com), [React](https://react.dev), [Bootstrap](https://getbootstrap.com), and [Webpack](https://webpack.js.org). It is designed |
| 13 | +so that multiple front-ends (a customer front-end, and an admin panel perhaps; more if need be) can live side-by-side, and use the same API. It even has built-in [Ngrok support](#working-with-ngrok). |
| 14 | +A virtual start-up in a box! |
| 15 | + |
| 16 | +## Quick Install |
| 17 | + |
| 18 | +```shell |
| 19 | +npx drfg neonexus/sails-react-bootstrap-webpack my-new-site |
| 20 | +npm run setup |
| 21 | +npm run start OR npm run ngrok |
| 22 | +``` |
16 | 23 |
|
17 | 24 | ## Table of Contents
|
18 | 25 |
|
@@ -56,7 +63,7 @@ compiled before it is handed to the end user), they can share [NPM](http://npmjs
|
56 | 63 | * Automatic (incoming) request logging (manual outgoing), via Sails models / hooks.
|
57 | 64 | * Setup for Webpack auto-reload dev server. Build; save; auto-reload.
|
58 | 65 | * Setup so Sails will serve Webpack-built bundles as separate apps (so, a marketing site, and an admin site can live side-by-side).
|
59 |
| -* More than a few custom [helper functions](api/helpers) to make life a little easier. |
| 66 | +* More than a few custom [API helper functions](api/helpers) to make life a little easier. |
60 | 67 | * Includes [react-bootstrap](https://www.npmjs.com/package/react-bootstrap) to make using Bootstrap styles / features with React easier.
|
61 | 68 | * Schema validation and enforcement for `PRODUCTION`. See [schema validation and enforcement](#schema-validation-and-enforcement).
|
62 | 69 | * New passwords will be checked against the [PwnedPasswords API](https://haveibeenpwned.com/API/v3#PwnedPasswords). If there is a single hit for the password, an error will be given, and the user will
|
@@ -449,7 +456,7 @@ It may also be a good idea to consider using something like [Nginx](https://ngin
|
449 | 456 |
|
450 | 457 | ## Schema Validation and Enforcement
|
451 | 458 |
|
452 |
| -This repo is set up for `MySQL` (can LIKELY be used with most if not all other SQL-based datastores [I have not tried]). If you plan to use a different datastore, you will likely want to disable this |
| 459 | +This feature is designed for `MySQL` (can LIKELY be used with most if not all other SQL-based datastores [I have not tried]). If you plan to use a different datastore, you will likely want to disable this |
453 | 460 | feature.
|
454 | 461 |
|
455 | 462 | Inside [`config/bootstrap.js`](config/bootstrap.js) is a bit of logic (**HEAVILY ROOTED IN NATIVE `MySQL` QUERIES**), which validates column types in the `PRODUCTION` database (
|
|
0 commit comments