Skip to content

Development (without Docker)

psunix edited this page May 5, 2021 · 5 revisions

Setup Development Environment

Install the database and dependencies using this command (Ubuntu):

sudo apt-get install sqlite3 mysql-client libmysqlclient-dev libqtwebkit-dev

Prerequisites:

Install Ruby, Ruby-Bundler and Node:

rvm install 2.5

gem install bundler

nvm install 10.22.0

Cryptopus

Go to your target Directory and clone the repository:

git clone git://github.com/puzzle/cryptopus.git

Build Cryptopus with the bundler:

cd cryptopus

rm public/frontend-index.html && cp frontend/dist/index.html public/frontend-index.html

bundle install

Create and initialize the database:

rake db:create

rake db:setup

rake geo:fetch

Install Frontend dependencies:

yarn

Start the Rails server:

rails s

Browse to http://localhost:3000/session/local and login with default root credentials:

user = "root" and password = "password" (Non-root login is http://localhost:3000/ or http://localhost:3000/session/new)

Ember Frontend

Navigate to the frontend folder and install dependencies:

cd frontend

yarn install

Start the ember server:

yarn start


Clone this wiki locally