Fest Manager is a Single Page Express Application that can be used to easily deploy websites for college fests.
Also, the swag behind the Atmos Website.
The following Android apps also depend on fest-manager as a backend server:
- Pearl 2018 (In production)
- Arena 2018
This app depends on:
- MongoDB version 2.6 or higher
- NodeJS version 6.10 or higher
Install them in the recommended way for your operating system. If your distribution's package repositories are updated, it should be as trivial as sudo apt install nodejs mongodb
. A few pointers could be:
- https://nodejs.org/en/download/package-manager/
- https://docs.mongodb.com/manual/administration/install-community/
To get the app up and running, do the following:
- Clone the repository using
git clone https://github.com/CRUx-BPHC/fest-manager.git
. - Change directory and install dependencies with
cd fest-manager; npm install
. - Create the config file (
/config.js
) like following:
Note: Developers can skip this step and instead use the dev-config.js
by default.
var config = {
facebook: {
clientID: '{your variables here}',
clientSecret: '{your variables here}',
callbackURL: "http://localhost:3000/auth/facebook/callback",
profileFields: ['emails']
},
google: {
clientID: '{your variables here}',
clientSecret: '{your variables here}',
callbackURL: "http://localhost:3000/auth/google/callback",
profileFields: ['emails']
},
github: {
clientID: '{your variables here}',
clientSecret: '{your variables here}',
callbackURL: "http://localhost:3000/auth/github/callback",
profileFields: ['emails']
}
}
module.exports = config;
- Ensure MongoDB is running. Depending on your OS, you might need to run MongoDB using
mongod --dbpath <path_to_data_dir>
. - Run the project with
npm start
. Visit localhost:3000 to view.
Note: Developers should instead use npm run dev
to run using nodemon.
We love contributions and would be glad to help you make good patches. That out of the way, an average contribution would involve the following:
- Fork this repository in your account.
- Clone it on your local machine.
- Add a new remote using
git remote add upstream https://github.com/CRUx-BPHC/fest-manager.git
. - Create a new feature branch with
git checkout -b my-feature
. - Make your changes.
- Lint your files and run all tests locally using
grunt
andgrunt test
. - Commit your changes.
- Rebase your commits with
upstream/master
:
git checkout master
git fetch upstream master
git reset --hard FETCH_HEAD
git checkout my-feature
git rebase master
- Resolve any merge conflicts, and then push the branch with
git push origin my-feature
. - Create a Pull Request detailing the changes you made and wait for review/merge.
It might seem a little complicated at a glance, but the fundamental concept is simple: we want to ensure that your changes are always made on top of the latest changes to the project and thus, we can easily merge your code. If you are facing any troubles, create a PR as you usually would and we would merge it manually. :)
The commit message:
- is written in the imperative (e.g., "Fix ...", "Add ...")
- is kept short, while concisely explaining what the commit does.
- is clear about what part of the code is affected -- often by prefixing with the name of the subsystem and a colon, like "express: ..." or "docs: ...".
- is a complete sentence, ending with a period.
Good summaries:
scripts: Fix running stream_data and node tests individually.
gather_subscriptions: Fix exception handling bad input.
Add GitLab integration.
Compare gather_subscriptions: Fix exception handling bad input.
with:
gather_subscriptions was broken
, which doesn't explain how it was broken (and isn't in the imperative)Fix exception when given bad input
, in which it's impossible to tell from the summary what part of the code is affectedgather_subscriptions: Fixing exception when given bad input.
, not in the imperativegather_subscriptions: Fixed exception when given bad input.
, not in the imperative
This software is released under the MIT License.
Copyright 2017 Crux
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.