-
Notifications
You must be signed in to change notification settings - Fork 13
Installation
tkaixiang edited this page Aug 20, 2021
·
21 revisions
- Nodejs
- MongoDB
git clone https://github.com/IRS-Cybersec/ctf_platform.git
cd ctf_platform- Nodejs
- A web server such as Nginx
- MongoDB
We are going to assume we are creating a folder called "ctf_platform" in the web server folder (/var/www) and dump everything there
We will set-up the API first as the client needs to be built manually later on to point to the right API address
mkdir /var/www/ctf_platform && mkdir /var/www/ctf_platform/api && mkdir /var/www/ctf_platform/client
git clone https://github.com/IRS-Cybersec/ctf_platform.git
cd ctf_platform
cp -R api /var/www/ctf_platform/apicd /var/www/ctf_platform/api
npm i
- Install NodeJS
- Run
npm iinside/clientto install the dependencies - Modify
window.ipAddressinside/client/src/app.jsto wherever your API is hosted at - Make any other modifications you want in
srcand thennpm run buildto compile the client. - The resulting client files will be located in
/client/build. Copy them into a place where you can serve them to the web.