You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,14 @@
1
1
# sails-react-bootstrap-webpack
2
2
3
-
[](https://app.travis-ci.com/github/neonexus/sails-react-bootstrap-webpack)
[//]: #([](https://app.travis-ci.com/github/neonexus/sails-react-bootstrap-webpack))
NOTE: You will need access to a MySQL / MariaDB database for the setup. If you want to use a different datastore, you'll need to configure it manually.
23
+
NOTE: You will need access to a MySQL / MariaDB database for the quick setup. If you want to use a different datastore, you'll need to configure it manually.
20
24
21
25
[Aiven.io](https://aiven.io) has FREE (no CC required) secure MySQL (5 GB), and Redis (1 GB). Both require use of SSL, and can be restricted to specified IPs. (If you are having trouble finding the
22
26
FREE instances, you need to select Digital Ocean as the cloud provider.) Use my [referral link](https://console.aiven.io/signup?referral_code=mk36ekt3wo1dvij7joon) to signup, and you'll get $100
@@ -29,6 +33,9 @@ npm run setup
29
33
npm run start OR npm run ngrok
30
34
```
31
35
36
+
NOTE: `drfg` is a secondary, standalone script I've been working on, which can be used for your own projects: [Download Release From GitHub](https://www.npmjs.com/package/drfg). It downloads
37
+
/ extracts / installs a release from a GitHub repo. (Currently only supports public repos...) `npx` downloads / runs NPM packages; comes standard with `npm` (at least, as of v5.2.0).
Copy file name to clipboardExpand all lines: api/policies/isLoggedIn.js
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
constmoment=require('moment-timezone');
2
2
3
+
// Standardize messages; not just for ease of change...
4
+
constinvalid='Invalid credentials.';
5
+
constnotLoggedIn='You are not logged in';
6
+
3
7
module.exports=asyncfunction(req,res,next){
4
8
constsessionId=req.signedCookies[sails.config.session.name]||null;// signed cookies: https://sailsjs.com/documentation/reference/request-req/req-signed-cookies
0 commit comments