Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tiagocordeiro/golme
https://github.com/tiagocordeiro/golme
hacktoberfest hacktoberfest-accepted
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tiagocordeiro/golme
- Owner: tiagocordeiro
- License: mit
- Created: 2021-03-08T16:27:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-01T09:48:57.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T09:43:23.078Z (3 months ago)
- Topics: hacktoberfest, hacktoberfest-accepted
- Language: JavaScript
- Homepage:
- Size: 9.25 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
goLME
=====Cotação London Metal Exchange
-----------------------------![Cobre](https://img.shields.io/badge/LME-Cobre-green.svg)
![Zinco](https://img.shields.io/badge/LME-Zinco-green.svg)
![Alumínio](https://img.shields.io/badge/LME-Aluminio-green.svg)
![Chumbo](https://img.shields.io/badge/LME-Chumbo-green.svg)
![Estanho](https://img.shields.io/badge/LME-Estanho-green.svg)
![Níquel](https://img.shields.io/badge/LME-Niquel-green.svg)## Live demo
https://lme.gorilaxpress.com/### Alguns endpoints de exmplo
```
/api/
/api//
/chart/
/chart//
/periodo//
/cotacao/
/cotacao//
/cotacao//json/
/cotacao//json/v2/
...
```### Como rodar o projeto
* Clone esse repositório.
* Crie um virtualenv com Python 3.
* Ative o virtualenv.
* Instale as dependências.
* Rode as migrações.```
git clone https://github.com/tiagocordeiro/goLME.git
cd goLME
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python contrib/env_gen.py
python manage.py migrate
```### Configurar administrador
Para cria um usuário administrador
```
python manage.py createsuperuser --username dev --email [email protected]
```### Populando o banco de dados
Cria timeseries
```
python manage.py loaddata lme_time_series
```### Atualiza preços do LME
```
python manage.py update_lme
```### Rodar em ambiente de desenvolvimento
Para rodar o projeto localmente
```
python manage.py runserver
```### Banco de dados para ambiente de desenvolvimento com Docker
```
docker-compose up -d
```