Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andodet/data-dev-env
Prepopulated development environment using Faker and docker-compose
https://github.com/andodet/data-dev-env
Last synced: about 2 months ago
JSON representation
Prepopulated development environment using Faker and docker-compose
- Host: GitHub
- URL: https://github.com/andodet/data-dev-env
- Owner: andodet
- Created: 2020-06-29T10:34:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-23T23:00:11.000Z (over 2 years ago)
- Last Synced: 2024-08-13T07:09:31.539Z (5 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - andodet/data-dev-env - Prepopulated development environment using Faker and docker-compose (Python)
README
# Test development environment
![run-tests](https://github.com/andodet/mock-dev-env/workflows/run-tests/badge.svg)
Spin up a development environment wiht a populated db through `docker-compose` and
[`Faker`](https://faker.readthedocs.io/en/master/).# Db Schema
As a pure example, the image will spin up a MySQL db populated with:
- `users`: table containing information on users.
- `transactions`: table containing transactions.`Faker` offers a number of data [providers](https://faker.readthedocs.io/en/master/providers.html)
that make fairly trivial to replicate pretty much any production set-up.# Installation
Build the image and spin the containers by launching:
```sh
docker-compose up --build
```You can then explore the fresh MySQL database with any given client:
```sh
mysql -h 0.0.0.0 -P 3306 -u root -p root
```# Extras
`docker-compose.cli.yaml` spins up an extra container to run tests to check
that all the necessary tables have been correctly created. This can be easily integrated
into a CI pipeline similarly to the setup achieved in this repo through Github Actions.