codefordenver / partner-finder

Using an open dataset with registered colorado business to build a tool that manages outreach to potential CFD partners.
3 stars 14 forks source link

feat: add dockerfile for dev environment #160

Closed irving-caamal closed 2 years ago

irving-caamal commented 3 years ago

Feature: add Dockerfile and docker-compose file to manage production and development environment

Hi I've created a docker-compose-dev.yml file to manage different environments for the frontend

Resolve #99

Hope this can help the project. thanks for the time

galbwe commented 3 years ago

I've tried to build and run the frontend app with Parcel, unfortunately, I cannot do that.

What issues did you run into?

irving-caamal commented 3 years ago

I've tried to build and run the frontend app with Parcel, unfortunately, I cannot do that.

What issues did you run into?

Hi @galbwe, well the app gets to build with no errors in the dist directory but when you try to run it, it throws a Parcel error 'cause can't load the .js files created, that's the reason I just put the same yarn dev on the Dockerfile for production

I try these steps with no success.

  1. I set type="module" when loading the js script in the index.html (requested by parcel)
  2. I set the scripts build and start you can check it here
    1. build. parcel build src/index.html
    2. start. parcel dist/index.html
  3. Everything looks good on the build but when you run the start script it crashes with a Parcel message that says can't load .js files
irving-caamal commented 3 years ago

thanks for your time @galbwe :handshake: