Skip to content

Development (without Docker)

Delta edited this page May 24, 2022 · 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

Windows Install:

wsl for Linux command Line: https://docs.microsoft.com/en-us/windows/wsl/install-win10 for firefox: https://virtualizationreview.com/articles/2017/02/08/graphical-programs-on-windows-subsystem-on-linux.aspx Also take a look at Windows.

Prerequisites:

Install Ruby, Ruby-Bundler and Node:

rvm install 2.7

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

rake db:seed

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