Vagabonds-Labs / cofiblocks

Welcome to Cofiblocks marketplace: A Starknet web3 platform to innovate Costa Rica coffee industry. Cofiblocks connects small coffee farmers directly with coffee lovers, cutting out unnecessary intermediaries.
https://www.cofiblocks.com/
10 stars 20 forks source link

Create a Makefile to Dockerize the Application, Local Blockchain, and Database #19

Open brolag opened 2 months ago

brolag commented 2 months ago

Create a Makefile to automate the Dockerization process for the CofiBlocks application, the local Starknet blockchain, and a MySQL database. This will simplify the setup and execution of the project in a local development environment.

jbmkahdeksan commented 2 months ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I've been working with several projects in the ecosystem, the knowledge acquiredcan be leveraged for good practices and quality for the task.

How I plan on tackling this issue

I will first make sure to setup everything correctly and understand how everything works as a whole. Then I will create the Makefile as requested.

onlydustapp[bot] commented 2 months ago

Hey @jbmkahdeksan! Thanks for showing interest. We've created an application for you to contribute to Cofiblocks. Go check it out on OnlyDust!

rvalenciano commented 2 months ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I've experience dockerizing applications with Docker/Docker Compose and creating database scripts with seeds data so development can be streamlined and the project portable, easy to setup and to run within a couple of commands.

How I plan on tackling this issue

  1. I'll create a Dockerfile inside the /apps/web folder where I install all packages that are needed for an alpine base image.
  2. I'll create a Docker-Compose file inside the /apps/web with the required dependencies in the web application
  3. Will research what is needed to Dockerize the starknet foundry so we can run the contracts locally without having to install anything.
  4. Once the app is up and running, will add the proper documentation
onlydustapp[bot] commented 2 months ago

Hey @rvalenciano! Thanks for showing interest. We've created an application for you to contribute to Cofiblocks. Go check it out on OnlyDust!

brolag commented 2 months ago

@rvalenciano @jbmkahdeksan please team up and work on this.

jbmkahdeksan commented 2 months ago

@brolag have you seen this? TL;DR Starknet Devnet in Python is deprecated. Options are: Starknet Devnet in Rust or Starknet Devnet in JS (wrapper) cc. @rvalenciano

brolag commented 2 months ago

@brolag have you seen this? TL;DR Starknet Devnet in Python is deprecated. Options are: Starknet Devnet in Rust or Starknet Devnet in JS (wrapper) cc. @rvalenciano

Didnt' know it was deprecated. Should we try the JS version?

jbmkahdeksan commented 2 months ago

Didnt' know it was deprecated. Should we try the JS version?

We can, I am investigating about it. I've found that Rust version has an Docker image published, this is not the case for the JS, version. I not a 100% sure, but I think the JS version would run within the app, not as a separate container.

rvalenciano commented 2 months ago

I'm fine with either Starknet Devnet JS or Starknet Devnet Rust, feel comfortable in both languages. @brolag @jbmkahdeksan you can make the call. @jbmkahdeksan even if the JS image doesn't have a proper image, we can dockerize this if we just pull from the Node 18 or whatever version we want base image.

jbmkahdeksan commented 5 days ago

@falconcr hi! glad you joined, I've been studying this docker image that could be a good fit for our Starknet container, I couldn't make it work in my environment thou.