ruandrade / dockerized_web3_project_example

This is a dockerized project with 5 services; Node API backend, a ReactJs frontend, a Hardhat server, a MySQL database, and phpmyadmin services. Observe how they are connected together using docker-compose.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is an example of an basic docker setup for a Web3 project

Monster-NFT

Dockerized Web3 Project Example ## Technology

This demo uses:

  • ReactJs
  • NodeJs
  • MySQL
  • PHPMyAdmin
  • Tailwind CSS
  • Solidity
  • EthersJs
  • Hardhat
  • Docker

Running the demo

To run the demo follow these steps:

  1. Clone the project with the code below.

    git clone https://github.com/Daltonic/dockerized_web3_project_example dockerized_web3_project
  2. In the root directory, create a .env file and paste the codes below in it.

  3. Update the .env file with the following details.

    MYSQL_DATABASE=<Your Database Name Here>
    MYSQL_USER=<Your User Name Here>
    MYSQL_PASSWORD=<Your Password Name Here>
    MYSQL_ROOT_PASSWORD=<Your Root/Admin Password Name Here>
  4. Run docker-compose up to launch the services.

  5. Run docker-compose down to end the services.

  6. Visit http://localhost:8080/ and import the monsternft.sql file into your monsternft database.

  7. Interact with the frontend from http://localhost:3000/ and the backend at http://localhost:9000/.

Questions about running the demo? Open an issue. We're here to help ✌️

Useful links

About

This is a dockerized project with 5 services; Node API backend, a ReactJs frontend, a Hardhat server, a MySQL database, and phpmyadmin services. Observe how they are connected together using docker-compose.


Languages

Language:JavaScript 84.0%Language:HTML 7.6%Language:CSS 5.9%Language:Dockerfile 1.3%Language:Solidity 0.8%Language:Shell 0.3%