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

Skip to content
Merged
Show file tree
Hide file tree
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
60 changes: 41 additions & 19 deletions Setup.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Setting up Development server

## Setting Up Development Server using Docker-compose

### Install [Docker](https://docs.docker.com/get-docker/)

```sh
# Move to project directory
cd BLT

# build the docker container
docker-compose build

# Run the docker container
docker-compose up

# for staticfiles collection (Optional)
docker exec -it <container id> /bin/bash

# collect staticfiles
python manage.py collectstatic

```

## Setting Up Development Server using Vagrant

### Install [Vagrant](https://www.vagrantup.com/)
Expand All @@ -11,26 +33,26 @@
```sh
# Move to project directory
cd BLT

# Start vagrant - It takes time during the first run, so go get a coffee!
vagrant up
# SSH into vagrant

# SSH into vagrant
vagrant ssh

# Move to project directory
cd BLT

# Create tables in the database
python manage.py migrate

# Create a super user
python manage.py createsuperuser

# Collect static files
python manage.py collectstatic

# Run the server
# Run the server
python manage.py runserver
```

Expand All @@ -50,35 +72,35 @@ from the host machine.

# Install postgres on mac using brew
brew install postgresql
# Install postgres on ubuntu

# Install postgres on ubuntu
sudo apt-get install postgresql

# Install pipenv on ubuntu
sudo apt-get install pipenv

# Install pipenv on mac
pip install pipenv

# Start virtual env
pipenv install | pipenv shell

# Move to project directory
cd BLT

# Create tables in the database
python manage.py migrate

# Load initial data
python3 manage.py loaddata website/fixtures/initial_data.json

# Create a super user
python manage.py createsuperuser

# Collect static files
python manage.py collectstatic

# Run the server
# Run the server
python manage.py runserver
```

Expand Down
Binary file added geckodriver
Binary file not shown.
5 changes: 5 additions & 0 deletions website/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@
<i class="fa fa-gear fa-fw"></i> {% trans "Change Password" %}
</a>
</li>
<li>
<a href="/invite/">
<i class="fa fa-paper-plane fa-fw"></i> {% trans "Invite Friends" %}
</a>
</li>
<li class="divider"></li>
<li>
<a href="/accounts/logout/">
Expand Down