Commit Graph

41 Commits

Author SHA1 Message Date
Laurence Tennant
2b6cf53d30 fix(users): Better MIME-type checking, remove image cropping library (#1589)
* Cropping remove, nicer UI

* Fix MIME-type checking, add image upload tests

* Change image config settings to uploads.profile.image to build a more
rational structure for configuring other types of uploads
2016-11-15 15:59:47 -08:00
Sujeeth
fb9d9d912c feat(user): add strict validations for username (#1574)
Idea proposed by @sparshy #1204
Suggestions, rules and tests from Trustroots @simison
Added validations on user server model
Added client side validations
Added relevant tests on user server tests
Added relevant tests on user e2e tests

Fixes #1204
2016-10-19 20:40:26 -07:00
Pedro Rodrigues
59c11c622e fix(core): fix twitter meta tags (#1581)
I believe the Twitter meta tags are outdated and this PR fixes them.
Taking into account the current MEAN.js tags and the Twitter docs, the most similar feature I found
is the Twitter Summary Card (https://dev.twitter.com/cards/types/summary).
2016-10-19 11:49:02 +03:00
hyperreality
70a3e4cac3 fix(tests): Reorganized coverage tests (#1480)
* Added coverage to Gulp

* Moved karma coverage task to Gulpfile, moved LCOV posting to coveralls to .travis.yml config
2016-09-05 20:42:37 +03:00
hyperreality
7be1910420 feat(tests): add client and server test coverage to Gulp (#1466)
* Added coverage to Gulp

* Integrated coveralls tests with gulp

* spurious changes to kick off coveralls
2016-09-04 01:30:32 +03:00
Liran Tal
64392b1eed fix(config): updating environment variable name for mongodb with the new one for Heroku (#1413) 2016-07-31 13:34:04 +03:00
Liran Tal
c8cbcd326f feat(logs): replacing unmaintained and vulnerable file-stream-rotator package with winston log facility (#1334)
* replacing file-stream-rotator with a better logging mechanism using winston which can be extended later for other use cases and integrations

* refactoring logger mechanism, accomodating for tests and environment variable configurations

* only enabling morgan logger if config.log.format option was defined, and disabling the app.log file transport option for the test environment

* disabling all kind of logging when in test enviroment
2016-05-22 01:03:18 +03:00
Marek Grzybek
d14d5130af feat(config): Deprecate JSHint in favor of ESLint
Add basic ESLint setup extending well-known Airbnb code style.

Fixes #1072, #1097
2016-03-15 19:11:12 +01:00
mleanos
8cd2291a6a Enable log options for Morgan
Adds the log options, and format to the Morgan middleware in the Express
configuration.

These options are defined in the environment configurations.

The implementation derived from https://github.com/meanjs/mean/pull/254
by @lirantal, which somehow got overlooked when merging 0.4.0 into
master.

Added tests for the Logger configuration.

Added the log settings to the Test env config.

Added environment variables for the log settings in the Test &
Production env configs.

Moved the Morgan Express middleware outside of the NODE_ENV ===
'development' check. Morgan should be used in all environments, and use
the settings set in each env config.

Changed the wording of the Stream option comments in the env configs.

Added Rotating Logs functionality, and refactored the log Stream
options. Added a new npm package, FileStreamRotator, for use with
Morgan's rotating logs functionality.

Also, refactored the log configuration tests to be more maintainable.

Added more tests, and refactored test suite to use mock-fs.
2015-10-20 21:03:07 -07:00
jloveland
c2b13b9216 adding karma coverage for grunt 2015-10-17 11:51:05 -04:00
mleanos
0560062eab Seed options - logResults
Added an options object to the database seed configuration. Currently,
the only option implemented is `logResults`; set using the seedDB env
config
options (default to "true").

Modified the definition of the env config for seedDB. It's now an
object, with
options.

Setting the logResults option is set to `false` in the core
configuration server test suite.

Also, fixed an issue with how env configs were reading the seedDB
setting from the env variables. Previously, the config was getting set
by
looking for merely the existence of the env variable (MONGO_SEED).
However,
if this setting existed but was set to "false", the seedDB would be
turned on.

Added the SeedDB user details to the env config, and seedDB options.

Added tests to the core server config test suite

should have seedDB configuration set for "regular" user
should have seedDB configuration set for admin user
should seed admin, and "regular" user accounts when NODE_ENV is set to
"test" when they already exist
should ONLY seed admin user account when NODE_ENV is set to "production"
with custom admin
should seed admin, and "regular" user accounts when NODE_ENV is set to
"test" with custom options
should NOT seed admin user account if it already exists when NODE_ENV is
set to "production"
should NOT seed "regular" user account if missing email when NODE_ENV
set to "test"

Added support for environment variables to seedDB env configs; currently
only supporting username & email.

Refactored how the SeedDB rejects were being handled
2015-10-09 13:48:11 -07:00
Andrew Throener
ea97f2e7d8 Database seeding 2015-08-13 09:37:24 -05:00
Ryan Hutchison
ef3a3f9548 formatting reboot (space-2 and consistency)
JSCS fixes

update editorconfig
2015-07-31 10:04:02 -04:00
Cody B. Daig
40878bb076 Get site title from default 2015-07-29 08:43:56 -07:00
Liran Tal
0bcadcc08e Enhancing support for development envionrment to enable mongoose debug mode so that we can debug db queries
Includes support for environment variable MONGODB_DEBUG
2015-07-25 21:23:20 +03:00
trainerbill
a98a84fd20 Fix merge conflicts 2015-07-14 15:46:23 -05:00
Liran Tal
6bb5b8cfd5 Merge branch '0.4.0' of https://github.com/Robaum/mean into Robaum-0.4.0
Conflicts:
	README.md
	config/env/development.js
	config/env/test.js
2015-07-11 00:59:35 +03:00
Roberto
08b2f746d6 Fig changed to Compose 2015-07-02 08:03:46 -05:00
Andrew Throener
8694b7e976 PayPal Authentication 2015-07-02 07:44:58 -05:00
Liran Tal
67e96a4f22 0.4.0 branch merged into master 2015-07-02 12:08:09 +03:00
Trey Hunner
78f28081d1 Add newlines to ends of files 2015-03-02 16:28:25 -08:00
Christian Berendt
e027f4025b Add missing newline at the end of text files
On Unix it is common to have a newline at the end of text files.
2015-02-16 21:39:55 +01:00
Liran Tal
5b7423cef2 updating support for mongodb connection string to support special chars for username and password 2014-11-29 11:06:16 +02:00
Amos Haviv
ab81d61bd3 New 0.4 version 2014-11-10 23:12:33 +02:00
Liran Tal
bf7bcc6170 adding support for logger handling which allows for saving the requests to a logfile, useful for production systems 2014-11-06 13:07:20 +02:00
Wesley Smith
593497027c Removed localhost from env files, as it is not necesary and can introduce bugs in non-local environments. 2014-09-01 17:44:05 -06:00
Amos Haviv
2c319c5e65 Update to config tabs 2014-08-05 16:49:33 +03:00
Amos Haviv
b311b7b72c Fix menu service defaults 2014-08-05 15:35:49 +03:00
Amos Haviv
f6e19093eb Update 0.3.2 2014-08-02 21:29:38 +03:00
anooprh
3dcf45c55a Added github signin/signup to the list of signups/signi's 2014-08-01 02:23:00 -04:00
Amos Haviv
f4b62ca819 Adding Password Reset 2014-07-31 11:27:14 +03:00
Matthias Luebken
c918f93320 checking for Env injected by fig/docker 2014-07-03 14:52:25 +02:00
Amos Haviv
a7aa199019 Fixing indentation 2014-05-20 18:22:38 +03:00
Samuel Vijaykumar M
7cf1fc2adb Changed all the indents to the spaces(tab size 4) 2014-05-14 16:05:15 +05:30
Amos Haviv
0e7ebb6da8 Fixing OAuth authentication 2014-05-08 00:14:59 +03:00
Miguel Cobá
fa1171fe28 Add envvars for deploying to cloud providers 2014-04-08 14:02:14 -05:00
Amos Haviv
c1213e9a7b Fixing Indentation Convention to TABS 2014-02-10 13:24:01 +02:00
Amos Haviv
17e089ec69 Moving to MEAN.JS 2014-02-10 13:09:25 +02:00
Drew Fyock
a0c9de3756 #236 implement swig instead of jade 2014-02-03 13:46:39 -05:00
Amos Haviv
822d7ca7b2 Properly run JSHint 2013-12-25 16:36:33 +02:00
Kieu Anh Tuan
3041b4f858 Use module export instead of json string so that we can use environment variable for credentials info 2013-11-07 18:41:05 +01:00