0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 22:52:40 +00:00
Commit Graph

71 Commits

Author SHA1 Message Date
G.Ambatte
9cccd2d74e Update server.js
Eliminating unnecessary debugging code, reducing line count and making lint happy :)
2021-01-17 17:19:24 +13:00
G.Ambatte
e140b656a6 Update server.js
Change to setting NODE_ENV; default to 'local' if not set via environment variable or in the config file.
2021-01-17 17:19:23 +13:00
G.Ambatte
8887961d09 Add config items
Add config items and default values:
- web_port (8001)
- environment (local)
2021-01-17 17:19:17 +13:00
G.Ambatte
ba600f5da6 FreeBSD installation (#1165)
* Update server.js

Eliminate requirement to CD into project directory prior to running `npm start` or `node server.js`.

* Add rc.d daemon script

Adds a RC.d daemon script to control the HomeBrewery status. Based on Andrew Pearson's Node-RED script for the same purpose.

* Create install.sh

* Update install.sh

* Update install.sh

Switch to latest version of MongoDB

* Add config items

Add config items and default values:
- web_port (8001)
- environment (local)

* Remove environment variables from rc.d

Remove environment variables from rc.d as they are now in config/default.json.

* Update server.js

Change to setting NODE_ENV; default to 'local' if not set via environment variable or in the config file.

* Remove --force option

Remove --force option from `npm audit fix`. While this has not caused any issues to date, there is no guarantee that it will continue to be the case.

* Create README.FREEBSD.md

Initial write up of install instructions. Includes instruction to `wget` from the `naturalcrit/homebrewery` project rather than the FreeBSD fork, on the assumption that the PR will be merged at some point.

* Update install.sh

Change to main project repo, on assumption that the PR will be merged at some point

* Change install directory

Change of install directory to `/usr/local/homebrewery`

* Update homebrewery

Add `dev_mode` to the HomeBrewery service, which starts the HomeBrewery project in live rebuild mode.

* Update server.js

Eliminating unnecessary debugging code, reducing line count and making lint happy :)

* Update server.js

Lint is happy, now attempting to pacify CircleCI

* Move NODE_ENV to service file; remove from server.js and config/default.json

* Remove hanging comma in config.json
Change default port assignment from 8000 to 8001 in config.json and FreeBSD service config

* Add link to FreeBSD install documenation in the main README.md file

* Fix for MongoDB package update breaking install script
Change to enable use of rcvars for NODE_ENV and PORT
2021-01-10 17:44:49 -05:00
Trevor Buckner
5a17697e7e Merge pull request #1118 from naturalcrit/fixGoogleMetadata
Fix metadata in Google docs
2020-11-25 13:26:14 -05:00
Trevor Buckner
7462e66858 Fix metadata in Google docs
Update view counts via service account since modifying another users' file properties requires increased permission scope
2020-11-22 23:53:34 -05:00
Trevor Buckner
56795afabb Fix broken API calls
expressStaticGzip was serving empty index files when it saw requests ending in '/' like 'api/newGoogle/'
2020-11-12 17:17:02 -05:00
Trevor Buckner
74c615f156 Cleanup 2020-11-11 22:21:27 -05:00
Trevor Buckner
133af4ea2c lint 2020-11-11 22:02:17 -05:00
Trevor Buckner
4182c79354 Use a library instead. Checks that the browser is compatible first. 2020-11-11 22:01:42 -05:00
Trevor Buckner
759d986188 lint 2020-11-11 21:41:48 -05:00
Trevor Buckner
600ca90fc0 Serve compressed static files if available 2020-11-11 21:19:49 -05:00
Trevor Buckner
8add76fb50 Linting 2020-10-26 13:27:37 -04:00
Rodrigo Kuerten
b908cd7cbd Changed page title to show homebrew title whenever possible 2020-10-25 13:55:10 -03:00
Trevor Buckner
77973f0037 v2.10.1 - Fix brews lost on back button 2020-10-12 14:30:42 -04:00
Trevor Buckner
8fe0148821 Fix Share links 2020-10-07 17:13:37 -04:00
Trevor Buckner
28ed2fe8f2 Fix Config spelling (must be all lowercase) 2020-10-07 16:17:05 -04:00
Trevor Buckner
131df2d82a Bug Fix 2020-10-07 15:55:07 -04:00
Trevor Buckner
0afb503860 Update Version number & cleanup 2020-10-07 15:02:42 -04:00
Trevor Buckner
864cc7a7bb Fix issues making brews when not signed in 2020-10-06 14:20:09 -04:00
Trevor Buckner
35e1ce0df2 Initial Commit. All seems to be working...?
EditPage.jsx and GoogleActions.js need to be cleaned up and shortened...
2020-10-05 23:33:15 -04:00
Trevor Buckner
22a9799674 Update vitreum (#946)
- Updates Vitreum to v6.0.1 + some custom fixes.
  - Stylesheets must be imported with `require('./sheet.less');` but can also can now share stylesheets between jsx components.
  - Should eliminate a lot of security concerns with older nested dependencies.
  - Changed a lot of files to make this work
- Also removes dependency on PicoRouter in favor of React-Router
2020-05-19 01:36:31 -04:00
Trevor Buckner
e88253f364 Added robots.txt, nofollow in metatags
Also noindex on /print/ pages
2020-04-20 13:46:18 -04:00
Trevor Buckner
b75063f936 Try upping Mongoose to 5.7.5 again
Apparently mongoose 5.7.0 has breaking changes.
2020-02-03 15:29:12 -05:00
Trevor Buckner
6ef88e0f1f Revert "Try upping Mongoose to 5.7.5"
This reverts commit 59e0118d8b.
2020-02-03 14:52:06 -05:00
Trevor Buckner
59e0118d8b Try upping Mongoose to 5.7.5
Small fix to connection string to keep Mongoose working with the older MongoDB 3.6 database
2020-02-03 14:49:03 -05:00
Scott Tolksdorf
21b83ead88 Added middleware to force all routes to be https 2018-12-05 18:14:05 -05:00
Rae Che
84285f7359 Remove redundant expression. 2018-05-31 10:53:07 -04:00
Rae Che
b8105eb147 Config: Read MongoDB URL from config files too. 2018-05-29 11:04:57 -04:00
Trevor Buckner
073fb73bde Wrap the text in the "source" page.
See #332.
2018-05-07 10:56:23 +01:00
Scott Tolksdorf
3583c2e776 upgrading to mongoose v5 2018-04-09 00:12:56 -04:00
Scott Tolksdorf
ed1b5252be lint 2018-04-09 00:12:56 -04:00
Scott Tolksdorf
c47d492ed3 fix 2017-02-18 14:48:45 -05:00
Scott Tolksdorf
18852932e8 Added new delete brew option on user page 2017-02-18 14:46:14 -05:00
Scott Tolksdorf
296b066ed3 Added a brew lookup for admin page 2017-01-19 12:28:00 -05:00
Scott Tolksdorf
9b80f17564 Lots of doc improvements 2016-12-25 22:07:23 -05:00
Scott Tolksdorf
56048ab936 vitreum 4 is looking stable 2016-12-25 21:44:27 -05:00
Scott Tolksdorf
a634b76117 Fixed a bug with saving while not logged in 2016-11-27 18:55:50 -05:00
Scott Tolksdorf
a0ca45ce1c Added new account nav item 2016-11-25 00:28:48 -05:00
Scott Tolksdorf
6af9dd9325 Added in a brew item component 2016-11-24 00:07:04 -05:00
Scott Tolksdorf
9e14872f06 Stubbed out a userpage 2016-11-23 23:59:57 -05:00
Scott Tolksdorf
750f5c1330 Added in middleware for retriving brews by a user 2016-11-23 23:41:39 -05:00
Scott Tolksdorf
1db24d07bd Adding in the needed libs 2016-11-23 23:00:28 -05:00
Scott Tolksdorf
8b3f9ac76a Cleaned up the server file and added methodfs and statics to the model 2016-11-14 22:30:28 -05:00
Scott Tolksdorf
6672dff938 Print page can now load from local storage 2016-11-14 21:31:01 -05:00
Scott Tolksdorf
4dce90ab41 Cleaning up the server file 2016-11-14 20:14:08 -05:00
Scott Tolksdorf
6b337b5d69 Added in a much better error page 2016-08-20 12:23:24 -04:00
Scott Tolksdorf
62d70022e7 Package version is now loaded into the navbar 2016-08-20 12:02:48 -04:00
Scott Tolksdorf
8a7e441724 Adding license file and changing welcome message extension 2016-08-20 11:43:27 -04:00
Scott Tolksdorf
91c7f45d33 Converting raw mongoose objects to json 2016-08-09 13:32:46 -04:00