-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master: Merge branch 'release/1.0.1' # Please enter a commit message …
…to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
- Loading branch information
Showing
20 changed files
with
205 additions
and
211 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
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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
# Summary | ||
# Parrot | ||
|
||
- [About Parrot!](./index.md) | ||
- [Quick Start](./quick_start.md) | ||
- [System requires](./qs_system_requires.md) | ||
- [Local run](./qs_local_run.md) | ||
- [Usage](./qs_usage.md) | ||
- [Contributing](./contributing.md) | ||
- [About Parrot!](index.md) | ||
- [Quick Start](quick-start/index.md) | ||
- [System requires](quick-start/system-requires.md) | ||
- [Local run](quick-start/local-run.md) | ||
- [Usage](usage/index.md) | ||
- [First steps](usage/first-steps.md) | ||
- [Request scripts](usage/request-scripts.md) | ||
- [Changelog](changelog.md) | ||
- [Contributing](contributing.md) | ||
|
||
--- | ||
[Contributors](./contributors.md) | ||
|
||
[Contributors](contributors.md) |
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 @@ | ||
{{#include ../../CHANGELOG.md}} |
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 |
---|---|---|
@@ -1,7 +1 @@ | ||
# Contributing | ||
|
||
We welcome all contributions! | ||
See [CONTRIBUTING.md](https://github.com/Uma-Tech/parrot/blob/develop/CONTRIBUTING.md) | ||
if you want to contribute. | ||
You can start with [issues that need some help](https://github.com/Uma-Tech/parrot/issues) | ||
right now. | ||
{{#include ../../CONTRIBUTING.md}} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 was deleted.
Oops, something went wrong.
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,4 @@ | ||
# Quick Start | ||
|
||
1. [System requires](system-requires.md) | ||
1. [Local run](local-run.md) |
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,103 @@ | ||
# Local run | ||
|
||
## Quickstart (with Docker) | ||
1. Clone the repo | ||
```shell | ||
git clone git@github.com:Uma-Tech/parrot.git | ||
cd parrot | ||
``` | ||
|
||
1. Build or download the docker image | ||
_for build_ | ||
```shell | ||
make build | ||
``` | ||
_for download_ | ||
```shell script | ||
docker pull umahighload/parrot-app:latest | ||
``` | ||
|
||
1. Apply migrations and create a superuser: | ||
```shell | ||
make shell | ||
# inside the container | ||
python manage.py migrate # apply migrations | ||
python manage.py createsuperuser # create a superuser | ||
exit ## leave from the container | ||
``` | ||
|
||
1. Start the app and its dependencies | ||
```shell | ||
make runserver | ||
``` | ||
|
||
1. You will be able to access the service at `http://127.0.0.1:8042/` | ||
|
||
## Start the project for development without Docker | ||
1. Clone the repo and go to the project directory | ||
```shell | ||
git clone git@github.com:Uma-Tech/parrot.git | ||
cd parrot | ||
``` | ||
|
||
1. Install dependencies | ||
```shell | ||
poetry install | ||
``` | ||
|
||
1. Start databases | ||
_You can start databases in any other way_ | ||
```shell | ||
# start postgres | ||
docker run \ | ||
--name postgres \ | ||
-d \ | ||
--rm \ | ||
-e POSTGRES_PASSWORD=parrot \ | ||
-e POSTGRES_USER=parrot \ | ||
--network host \ | ||
-v parrot_db:/var/lib/postgresql/data \ | ||
postgres | ||
# start redis | ||
docker run \ | ||
--name redis \ | ||
-d \ | ||
--rm \ | ||
--network host \ | ||
redis | ||
``` | ||
|
||
1. Setting required environment variables | ||
```shell | ||
export PARROT_DB_HOST=127.0.0.1 | ||
export PARROT_SECRET_KEY=NO_SECRET | ||
export PARROT_CELERY_BROKER_URL=redis://127.0.0.1 | ||
``` | ||
_Alternatively, you can create a local `.env` file with the variables_ | ||
|
||
1. Build static | ||
```shell | ||
poetry run python manage.py collectstatic --no-input | ||
``` | ||
|
||
1. Apply database migrations | ||
```shell | ||
poetry run python manage.py migrate | ||
``` | ||
|
||
1. Create a django superuser | ||
```shell | ||
poetry run python manage.py createsuperuser | ||
``` | ||
|
||
1. Start the django app | ||
```shell | ||
poetry run python manage.py runserver | ||
``` | ||
|
||
1. Start the celery worker | ||
_Run in a separate terminal window_ | ||
```shell | ||
poetry run celery -A parrot worker -l INFO -c 4 | ||
``` |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.