Git Product home page Git Product logo

buza-website's Introduction

Buza

This is the code for Buza mobi site

Getting started

With Vagrant

The easiest way to get a development instance of Buza up and running is to use Vagrant.

After installing Vagrant, run the following to provision a Buza virtual machine:

vagrant up

(This will take a while the first time you run it, but will be faster on subsequent runs.)

To run the Django development server, you can execute the following command:

vagrant ssh -c 'cd /vagrant && pipenv run django-admin runserver 0.0.0.0:8000'

You can also log into the virtual machine and activate the project, in order to run other Django development commands. For example:

$ vagrant ssh
vagrant@ubuntu-bionic:~$ cd /vagrant
vagrant@ubuntu-bionic:/vagrant$ pipenv shell
Loading .env environment variables...
Launching subshell in virtual environment…
(vagrant-gKDsaKU3) vagrant@ubuntu-bionic:/vagrant$ django-admin check
System check identified no issues (0 silenced).
(vagrant-gKDsaKU3) vagrant@ubuntu-bionic:/vagrant$

When you're finished working, you can stop the Vagrant virtual machine by running vagrant halt. Running vagrant up again will restart it.

To destroy the virtual machine completely, run vagrant destroy.

You can also create the docker image for the project to run it:

$ docker-compose up

With Pipenv

To set up a conventional Python development environment, make sure you have the following tools installed:

Django requires the DJANGO_SETTINGS_MODULE environment variable to run. To set this and get started, copy the env.example file to .env:

$ cp .env.example .env

(Pipenv will automatically load the environment variables defined in this .env file.)

Fetch the Yarn dependencies:

$ yarn

Install the Pipenv dependencies, and activate the environment:

$ pipenv install --dev
$ pipenv shell

Initialise the database, and run the Django development server:

$ django-admin migrate
$ django-admin createsuperuser
$ django-admin runserver

Running checks and tests

To run all the static checks and tests, invoke Tox:

$ tox

To run the checks and tests individually, see the "commands" section of tox.ini.

Git pre-commit hook

To run our main quick checks before each commit, add the following to .git/hooks/pre-commit:

#!/bin/sh -e

mypy -i src tests
flake8
isort --check-only

buza-website's People

Contributors

omosimege avatar pidelport avatar sewagodimo avatar sw00 avatar zoidyzoidzoid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

buza-website's Issues

Similar Project

Hi folks
This seems like are very interesting project and I'd very much like to help out if possible.

There is another project called scoold which attempts to be an open source Q&A platform. you might be able to get some ideas off it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.