forked from hackohio/quill
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e83a584
Showing
85 changed files
with
9,640 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"directory": "app/client/plugins" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
NODE_ENV= 'dev' | ||
DATABASE='' | ||
PORT='3000' | ||
JWT_SECRET='shhhh super secret code here bro' | ||
ROOT_URL='http://localhost:3000' | ||
|
||
ADMIN_EMAIL='[email protected]' | ||
ADMIN_PASS='party' | ||
|
||
EMAIL_CONTACT='HackMIT Team <[email protected]>' | ||
EMAIL_HOST='smtp.gmail.com' | ||
EMAIL_USER='[email protected]' | ||
EMAIL_PASS='password' | ||
EMAIL_PORT='465' | ||
|
||
TEAM_MAX_SIZE=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
db/ | ||
node_modules/ | ||
app/client/build/ | ||
app/client/plugins/ | ||
*.log | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
JAFRS | ||
========== | ||
|
||
**Please see the license at the bottom of this file before using the code. The | ||
license applies to all the code included with this software distribution.** | ||
|
||
If you have any questions about this software, please contact [email protected]. | ||
|
||
Note that this is a preview release; it may be missing documentation, etc. | ||
|
||
**PLEASE CHANGE the branding from the HackMIT branding before using this for | ||
your own event.** | ||
|
||
Oh, also, it would be nice if you could give Edwin Zhang / HackMIT credit for | ||
this. | ||
|
||
--- | ||
|
||
Just another fucking reg system. For hackers! | ||
|
||
Local Development: | ||
|
||
Install Dependencies: | ||
```sh | ||
mkdir db | ||
npm install | ||
bower install | ||
npm run config | ||
``` | ||
|
||
Startup: | ||
```sh | ||
npm run mongo | ||
gulp server | ||
``` | ||
|
||
License | ||
------- | ||
|
||
Copyright (c) 2015-2016 Edwin Zhang (https://github.com/ehzhang). | ||
|
||
This software may be used only by the individuals or groups it has been explicitly shared with. | ||
|
||
This software is for noncommercial use only. | ||
|
||
The software may not be copied or distributed; all similar activities are prohibited. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Load the dotfiles. | ||
require('dotenv').load(); | ||
|
||
var express = require('express'); | ||
|
||
// Middleware! | ||
var bodyParser = require('body-parser'); | ||
var methodOverride = require('method-override'); | ||
var morgan = require('morgan'); | ||
var cookieParser = require('cookie-parser'); | ||
|
||
var mongoose = require('mongoose'); | ||
var port = process.env.PORT || 3000; | ||
var database = process.env.DATABASE || "mongodb://localhost:27017"; | ||
|
||
var settingsConfig = require('./config/settings'); | ||
var adminConfig = require('./config/admin'); | ||
|
||
var app = express(); | ||
|
||
// Connect to mongodb | ||
mongoose.connect(database); | ||
|
||
app.use(morgan('dev')); | ||
app.use(cookieParser()); | ||
|
||
app.use(bodyParser.urlencoded({ | ||
extended: true | ||
})); | ||
app.use(bodyParser.json()); | ||
|
||
app.use(methodOverride()); | ||
|
||
app.use(express.static(__dirname + '/app/client')); | ||
|
||
// Routers ===================================================================== | ||
|
||
var apiRouter = express.Router(); | ||
require('./app/server/routes/api')(apiRouter); | ||
app.use('/api', apiRouter); | ||
|
||
var authRouter = express.Router(); | ||
require('./app/server/routes/auth')(authRouter); | ||
app.use('/auth', authRouter); | ||
|
||
require('./app/server/routes')(app); | ||
|
||
// listen (start app with node server.js) ====================================== | ||
app.listen(port); | ||
console.log("App listening on port " + port); | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.