mumbleapi

Backend/API for the Mumble.dev, an open source social media application

The Mumble Diagram

drawSQL-MumbleApi

Install and Run

Make sure you have Python 3.x installed and the latest version of pip installed before running these steps.

To contribute, please follow the guidelines process.

Clone the repository using the following command

git clone [email protected]:divanov11/mumbleapi.git
# After cloning, move into the directory having the project files using the change directory command
cd mumbleapi

Create a virtual environment where all the required python packages will be installed

# Use this on Windows
python -m venv env
# Use this on Linux and Mac
python -m venv env

Activate the virtual environment

# Windows
.\env\Scripts\activate
# Linux and Mac
source env/bin/activate

Install all the project Requirements

pip install -r requirements.txt

-Apply migrations and create your superuser (follow the prompts)

# apply migrations and create your database
python manage.py migrate

# Create a user with manage.py
python manage.py createsuperuser

Load test data to your database


# load data for feed
python manage.py loaddata feeddata.json

# load data for article
python manage.py loaddata articledata.json

# load data for discussion
python manage.py loaddata discussiondata.json

Run the tests

# run django tests for article app
python manage.py test article
# run django tests for discussion app
python manage.py test discussion
# run django tests for feed app
python manage.py test feed
# run django tests for users app
python manage.py test users

Run the development server

# run django development server
python manage.py runserver

GitHub

https://github.com/divanov11/mumbleapi