-
Notifications
You must be signed in to change notification settings - Fork 11
Getting Started
failedxyz edited this page Dec 10, 2014
·
1 revision
Getting started with the CTF-Platform is a simple and painless process. We have a recommended approach and will also post some F.A.Q. for people who are using other systems or hosts.
Heroku is a free web hosting service that can deploy apps in many languages.
- Make an account on Heroku
- Create a new app on Heroku.
- Download the Heroku toolbelt.
- Login to the Heroku toolbelt using
heroku login
and enter your credentials.
- Navigate to the folder that you want to place the cloned repo in.
git clone https://github.com/EasyCTF/CTF-Platform.git
- Navigate into the repo folder.
-
heroku git:remote --app <name>
to addheroku
as a remote. Replace<name>
with whatever the name of the app you created in Step 1.2 was. -
git push heroku master
to push this repo to Heroku. Note that it rebuilds the app every time you push. -
heroku ps:scale web=1
to start running theweb
dyno. -
heroku open
to open your app.
- On your Heroku dashboard, click your app name, and click Get Addons.
- Look for a MongoDB addon, and add it to your app.
- Once you get the credentials for the server, replace the part in
api/common.js
with your real information. - Push your changes to Heroku.
Change every instance of CTF-Platform
to whatever the name of your CTF is going to be called.