Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gregors/truffle_playground

Easy Truffle playground
https://github.com/gregors/truffle_playground

Last synced: 25 days ago
JSON representation

Easy Truffle playground

Awesome Lists containing this project

README

        

# Truffle playground

I was following [https://www.jitsejan.com/truffle-in-docker.html](https://www.jitsejan.com/truffle-in-docker.html)
but some things were outdated so I did a bit of tweaking to suit my needs

```
docker compose up -d
docker ps
docker attach truffleplayground_truffle_1
truffle unbox webpack
```

If you don't overwrite the truffle-config.js file
during the webpack creation steps you can skip
the next step

## Set up network

ctrl p + ctrl q to detach from docker
and in the host os

```
sudo vim truffle.config.js
```

uncomment development and change host

```
host: "127.0.0.1",
```

to

```
host: "ganache",
```

## Run Tests
in docker container

```
truffle test --network development
```