Skip to content

Setting Up the Environment

P.S.Narayanan edited this page Dec 10, 2016 · 1 revision

Prerequisites

  • PHP >= 5.6.4 (PHP 7 Recommended)
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • Composer
  • Any Command Line Interface(If you are using windows)
  • Mysql

Setting up The Web-Interface locally

  • The ViPER Web Interface is built with Laravel PHP framework. Laravel utilizes Composer to manage its dependencies. So, before using Laravel, make sure you have Composer installed on your machine.

  • After Composer is properly installed you have to clone ViPER git repo here using git clone command

git clone https://github.com/DedSecInside/ViPER.git

  • Now cd to the cloned ViPER Directory and install

cd ViPER && composer install

  • Now before running the server you need to setup the database for ViPER. In order to do that you have to create a new database in mysql.

mysql -u<username> -p
and type the password for the user and after that,
create database ViPER;
exit
This will create a new database called ViPER.

  • Now that your database is ready, you need to configure the environment file in the ViPER directory.
    cp .env.example .env
    this will create a copy of .env.example (example env file)

  • Open .env with a text editor and make changes to the below part in your env file.

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=ViPER
DB_USERNAME=YOUR MYSQL USER
DB_PASSWORD=YOUR MYSQL PASSWORD

  • After making proper changes to your .env file you are ready to migrate the database
    php artisan migrate
    This will migrate the database schema required for ViPER.

  • Type
    php artisan key:generate
    to generate the unique app key

  • After that you may start the server using serve command
    php artisan serve
    This will run a server in your http://localhost:8000(by default)