Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 2 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,55 +4,9 @@

Live Site: [Bugheist](http://bugheist.com/)

## Setting Up Development Server (Vagrant)
## Setting Up Development Server

1. Get [Vagrant](https://www.vagrantup.com/)

2. Get [Virtualbox](https://www.virtualbox.org/)

3. Navigate to the directory with source code and type `vagrant up`. (It takes time during the first run, so go get a coffee!).

4. Now, type `vagrant ssh`.

5. Run `python BLT/manage.py migrate`.

6. Run `python BLT/manage.py createsuperuser`.

7. Start the server using `python BLT/manage.py runserver 0.0.0.0:8000` and visit `http://localhost:8000`.

8. Then go to http://127.0.0.1:8000/admin/socialaccount/socialapp/) and add filler information for social auth accounts. Add a Domain (http://127.0.0.1:8000/admin/website/domain/) with the name 'owasp.com'.

**Note:** In case you encounter an error with vagrant's vbguest module, run `vagrant plugin install vagrant-vbguest` from the host machine.

## Setting Up Development Server (Virtual Environment)

1. If PostgreSQL is not installed, run:

* `brew install postgresql` (Mac).

* `sudo apt-get install postgresql` (Ubuntu).

2. Type `cd BLT`.

3. If virtualenv is not installed, run `sudo apt-get install virtualenv` followed by:

* `virtualenv venv` (Ubuntu).

* `venv\Scripts\activate` (Windows).

* `source venv/bin/activate` (Mac).

4. Run `pip install -r requirements.txt`.

5. Run `python manage.py migrate`.

6. Run `python manage.py createsuperuser`.

7. Then go to http://127.0.0.1:8000/admin/socialaccount/socialapp/) and add filler information for social auth accounts. Add a Domain (http://127.0.0.1:8000/admin/website/domain/) with the name 'owasp.com'.

8. Start the server using `python manage.py runserver` and visit `http://localhost:8000`.

**Note:** In case you encounter an error, run `sudo apt-get install libpq-dev`.
Please follow the development server setup procedure [here](https://github.com/OWASP/BLT/wiki/Setting-up-the-development-server). Currently, development server can be installed using virtualenv or vagrant.

## Resources

Expand Down