|
|
@ -4,32 +4,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
### Dependences
|
|
|
|
### Dependencies
|
|
|
|
|
|
|
|
|
|
|
|
- Python 3.8
|
|
|
|
- `Python>=3.8`
|
|
|
|
- gcc
|
|
|
|
- `gcc` or your compiler of choice
|
|
|
|
- python3-dev
|
|
|
|
- `python3-dev`
|
|
|
|
- libmysqlclient-dev or similar
|
|
|
|
- Your distro's mysql library (`libmysqlclient-dev` in Ubuntu)
|
|
|
|
|
|
|
|
|
|
|
|
Or docker and docker-compose to run into container.
|
|
|
|
You can also run neeble under [docker](https://www.docker.com/) with [docker-compose](https://docs.docker.com/compose/)
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
### How run
|
|
|
|
### How to run
|
|
|
|
|
|
|
|
|
|
|
|
- You need mysql instance running in your pc.
|
|
|
|
- Make sure you are running a SQL server instance
|
|
|
|
- Into mysql instance create a db named `neeble`.
|
|
|
|
- Create a database named `neeble`
|
|
|
|
- Copy file environment/template and rename then.
|
|
|
|
- Set up your environment variables with `environment/template` (You may copy the template into a new file)
|
|
|
|
- Fill environment variables into a new file.
|
|
|
|
- Load environment variables with `source`:
|
|
|
|
- Load environment varriables with source command
|
|
|
|
`$ source environment/template`
|
|
|
|
> $ source environment/myenvfile
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### Python local run
|
|
|
|
##### Run it locally using python
|
|
|
|
- Execute `migrate` command to create necessary tables.
|
|
|
|
The `Makefile` provided will do all necessary migrations and start the bot:
|
|
|
|
> $ python manage.py migrate
|
|
|
|
`$ make production`
|
|
|
|
- Excecute `run` command.
|
|
|
|
|
|
|
|
> $ python manage.py run
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### Docker run
|
|
|
|
##### Run it under python
|
|
|
|
- Execute the command:
|
|
|
|
Build and start the container with `docker-compose`:
|
|
|
|
> $ docker-compose up -d --build
|
|
|
|
`$ docker-compose up -d --build`
|
|
|
|