-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update readme and create quick_start guide
- Loading branch information
1 parent
69d21b1
commit 9c8d094
Showing
2 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<p align="center"> | ||
<img src="https://i.imgur.com/PKrSNGY.png" alt="BLACK LIVES MATTER" /> | ||
|
||
<h3 align="center">BLACK LIVES MATTER</h3> | ||
|
||
<p align="center"> | ||
<a href="https://blacklivesmatter.com/" target="_blank">Black Lives Matter</a> | ||
· | ||
<a href="https://act.unicefusa.org/blm" target="_blank">Supporting the cause</a> | ||
· | ||
</p> | ||
</p> | ||
|
||
<br /> | ||
<p align="center"> | ||
<img src="https://user-images.githubusercontent.com/5360835/65427083-1af35900-de01-11e9-86ef-59f1eee79a68.png" width="230" height="70" alt="Bothub" /> | ||
</p> | ||
|
||
|
||
# Bothub | ||
|
||
[![Build Status](https://travis-ci.com/Ilhasoft/bothub-engine.svg?branch=master)](https://travis-ci.com/Ilhasoft/bothub-engine) | ||
[![Coverage Status](https://coveralls.io/repos/github/bothub-it/bothub-engine/badge.svg?branch=master)](https://coveralls.io/github/bothub-it/bothub-engine?branch=master) | ||
[![Code Climate](https://codeclimate.com/github/bothub-it/bothub-engine/badges/gpa.svg)](https://codeclimate.com/github/bothub-it/bothub-engine) | ||
[![Python Version](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/) | ||
[![License GPL-3.0](https://img.shields.io/badge/license-%20GPL--3.0-yellow.svg)](https://github.com/bothub-it/bothub-engine/blob/master/LICENSE) | ||
|
||
|
||
|
||
# Setting up for development | ||
|
||
* Download the project code | ||
|
||
$ git clone https://github.com/Ilhasoft/bothub-engine.git | ||
|
||
* Prepare the virtual environment and install dependencies: | ||
|
||
$ make install_requirements | ||
$ make check_environment | ||
|
||
* Start the containers for the other dependencies(Postgresql, Elasticsearch and Redis): | ||
|
||
$ docker-compose up -d database es bothub-engine-celery-redis | ||
|
||
* Create the .env file following the [Enviroment Variables section](https://github.com/Ilhasoft/bothub-engine#environment-variables) | ||
|
||
* Run the migrations and create and populate the indices at elasticsearch | ||
|
||
$ make migrate | ||
$ make search_index | ||
|
||
* Collect the static files into ```STATIC_ROOT``` | ||
|
||
$ make collectstatic | ||
|
||
* Run tests | ||
|
||
$ make test | ||
|
||
* run django in a separated terminal | ||
|
||
$ make start | ||
|
||
* run celery in a separated terminal | ||
|
||
$ make start_celery | ||
|
||
* run lint after making updates in the code | ||
|
||
$ make lint | ||
|
||
* (optional) Add initial data into the database | ||
|
||
$ pipenv run python ./manage.py fill_db_using_fake_data | ||
|
||
* If you did not follow the previous step, create a superuser to access the django admin interface | ||
|
||
$ pipenv run python ./manage.py createsuperuser | ||
|
||
The API will be running at ```http://localhost:8000``` and the admin interface can be accessed at ```http://localhost:8000/admin``` | ||
|
||
|