Node server working with Cloudinary and MongoDB for proofing client project. (Also now a mail server)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
auth
test
users
.gitignore
README.md
config.js
models.js
package-lock.json
package.json
server.js

README.md

Proofing Server Build Status

Original tests have been scrapped after adding jwt auth to routes. New tests are needed.

Build is likely passing. Will require Config file like below with cloudinary url and your JWT Secret

config.js

	exports.DATABASE_URL = process.env.DATABASE_URL ||
							global.DATABASE_URL ||
							'mongodb://localhost/proofing-db';

	exports.TESTDATABASE_URL = process.env.TestDatabase_URL ||
								'mongodb://localhost/proofing-db';

	exports.PORT = process.env.PORT || 8080;

	exports.CLOUDINARY_URL = ' '

	exports.CLIENT_ORIGIN = process.env.CLIENT_ORIGIN || 'http://localhost:3000';


	exports.JWT_SECRET = ' '
	exports.JWT_EXPIRY = process.env.JWT_EXPIRY || '7d';