Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ehzhang committed Feb 22, 2017
0 parents commit e83a584
Show file tree
Hide file tree
Showing 85 changed files with 9,640 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "app/client/plugins"
}
16 changes: 16 additions & 0 deletions .env.config
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
6 changes: 6 additions & 0 deletions .gitignore
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
46 changes: 46 additions & 0 deletions README.md
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.
51 changes: 51 additions & 0 deletions app.js
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);

Binary file added app/client/assets/images/Banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/client/assets/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions app/client/assets/images/logo-color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions app/client/assets/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e83a584

Please sign in to comment.