Skip to content

Conversation

@ChubaOraka
Copy link
Collaborator

ChubaOraka and others added 12 commits August 21, 2022 08:44
…es extraneous files

References:
React — Local Development With Docker-Compose | by Bhargav Bachina | Bachina Labs | Medium
https://medium.com/bb-tutorials-and-thoughts/react-local-development-with-docker-compose-5a247710f997

bbachi/react-nodejs-example: Example Project demonstrating how to develop React application with Nodejs
https://github.com/bbachi/react-nodejs-example

Implement Docker With Hot Reloading In Next JS | by Bikash dulal | wesionaryTEAM | Medium
https://medium.com/wesionary-team/impledocker-with-hot-reloading-in-next-js-f3e57fba84ce

NewDocker
https://gist.github.com/Bikash888/2f469d5a28594351fda4370cf69c85a3/

docker - How to test dockerignore file? - Stack Overflow
https://stackoverflow.com/questions/38946683/how-to-test-dockerignore-file
https://stackoverflow.com/a/71751097
https://stackoverflow.com/questions/38946683/how-to-test-dockerignore-file/71751097#71751097

docker - Can dockerfile be put in .dockerignore? - Stack Overflow
https://stackoverflow.com/questions/47580298/can-dockerfile-be-put-in-dockerignore
The docker-compose file manages the containers and provides the needed
environment for development.

References:
Building and deploying Next.js applications with Docker - YouTube
https://www.youtube.com/watch?v=aNh8iShFXto

Koyeb - How to Dockerize and Deploy a Next.js Application on Koyeb
https://www.koyeb.com/tutorials/how-to-dockerize-and-deploy-a-next-js-application-on-koyeb

How To Connect Docker With Python Flask And ReactJS FrontEnd | Docker Flask React Made Easy| 2021 HD - YouTube
https://www.youtube.com/watch?v=ISCiJmY1g2M

react-flask-postgres-boilerplate-with-docker/docker-compose.yml at master · tomahim/react-flask-postgres-boilerplate-with-docker
https://github.com/tomahim/react-flask-postgres-boilerplate-with-docker/blob/master/docker-compose.yml

Implement Docker With Hot Reloading In Next JS | by Bikash dulal | wesionaryTEAM | Medium
https://medium.com/wesionary-team/impledocker-with-hot-reloading-in-next-js-f3e57fba84ce

Bikash888/nextjs-docker
https://github.com/Bikash888/nextjs-docker

Hot Reloading not working in Next.js 9 using custom routing, styled components and withApollo example · Issue #16449 · vercel/next.js
vercel/next.js#16449

NextJS Fast Refresh - GeeksforGeeks
https://www.geeksforgeeks.org/nextjs-fast-refresh/
References:
Implement Docker With Hot Reloading In Next JS | by Bikash dulal | wesionaryTEAM | Medium
https://medium.com/wesionary-team/impledocker-with-hot-reloading-in-next-js-f3e57fba84ce

Bikash888/nextjs-docker
https://github.com/Bikash888/nextjs-docker

nextjs-docker/next.config.js at main · Bikash888/nextjs-docker
https://github.com/Bikash888/nextjs-docker/blob/main/next.config.js
Hot Reloading not working in Next.js 9 using custom routing, styled components and withApollo example · Issue #16449 · vercel/next.js
vercel/next.js#16449

NextJS Fast Refresh - GeeksforGeeks
https://www.geeksforgeeks.org/nextjs-fast-refresh/

next.config.js: Custom Webpack Config | Next.js
https://nextjs.org/docs/api-reference/next.config.js/custom-webpack-config

Hot reloading Next.js with Docker in development | James Chambers
https://jameschambers.co.uk/nextjs-hot-reload-docker-development
https://jameschambers.co.uk/nextjs-hot-reload-docker-development#step-3-update-nextconfigjs

Building and deploying Next.js applications with Docker - YouTube
https://www.youtube.com/watch?v=aNh8iShFXto

Koyeb - How to Dockerize and Deploy a Next.js Application on Koyeb
https://www.koyeb.com/tutorials/how-to-dockerize-and-deploy-a-next-js-application-on-koyeb

How To Connect Docker With Python Flask And ReactJS FrontEnd | Docker Flask React Made Easy| 2021 HD - YouTube
https://www.youtube.com/watch?v=ISCiJmY1g2M

react-flask-postgres-boilerplate-with-docker/docker-compose.yml at master · tomahim/react-flask-postgres-boilerplate-with-docker
https://github.com/tomahim/react-flask-postgres-boilerplate-with-docker/blob/master/docker-compose.yml
The proxy also allows the frontend developers to write code assuming the
frontend and backend are served on the same domain

The proxy
References:
Proxying API Requests in Development | Create React App
https://create-react-app.dev/docs/proxying-api-requests-in-development/

Node.js – React Proxy error: Could not proxy request /api/ from localhost:3000 to http://localhost:8000 (ECONNREFUSED) – iTecNote
https://itecnote.com/tecnote/ios-react-proxy-error-could-not-proxy-request-api-from-localhost3000-to-http-localhost8000-econnrefused/

Node.js – React Proxy error: Could not proxy request /api/ from localhost:3000 to http://localhost:8000 (ECONNREFUSED) – iTecNote
https://itecnote.com/tecnote/ios-react-proxy-error-could-not-proxy-request-api-from-localhost3000-to-http-localhost8000-econnrefused/#comments

javascript - Access to fetch at from origin 'http://localhost:3000' has been blocked by CORS policy - Stack Overflow
https://stackoverflow.com/questions/61238680/access-to-fetch-at-from-origin-http-localhost3000-has-been-blocked-by-cors
The instructions includes setup with or without containers
```
then switch to last stable branch with Flask backend:
```bash
git checkout 940bc4d36f8a34e65373e080024cf98d97b4cf52
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will recommend we only merge(probably will need further update) after a Node PR is merged to master.

Suggested change
git checkout 940bc4d36f8a34e65373e080024cf98d97b4cf52
git checkout main

This will allow us to give specific contribution/setup instruction to the contributor/user.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once the PR is merged, we can update this README apprpriately #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stabilize README for migration of backend to NodeJS

2 participants