An API for storing users, teams, hacks, challenges and sponsors
Currently the project is written in a hybrid set of TypeScript files converted from the original JavaScript. The project will self-build after a little setup.
You will need installations of the following:
- Node.JS - currently tested with version 4 or above.
- MongoDB
-
Fork the repository.
-
Clone to your local machine:
$ git clone https://github.com/<YourName>/Hack24-API $ cd Hack24-API
-
Install dependencies:
$ npm install
-
The install step runs the TypeScript build, but you can also set up a watch on changes to build immediately. You'll need to install
gulp
globally and then run the watcher:$ npm install gulp -g $ gulp watch
-
To run the API locally, there is a
nodemon.json
file in the root which will allow continuous development with immediate restarts. You'll need to install nodemon globally then set your MONGODB_URL and execute:$ npm install nodemon -g $ MONGODB_URL='mongodb://localhost/hack24api' nodemon
-
Once you've made your changes, push up your code:
$ git add -A $ git commit -m 'Your change description' $ git push origin master
-
Open a pull request!