Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some deployment fix! #3

Open
felixoder opened this issue Jun 23, 2024 · 0 comments
Open

Some deployment fix! #3

felixoder opened this issue Jun 23, 2024 · 0 comments

Comments

@felixoder
Copy link

Your project looks great. One thing can do for getting CORS error on server.

  1. Revamp with _vite i_nstead cra(create react app)
  2. Use Tsx instead jsx for typesafety.
  3. In backend I thing everything looks cool still you can use come advanced postgre schema (not necessary)
  4. You can add a simple tracking system of the order after completion can do it using some simple logics.
  5. After the completion of the order send a mail to the customer with the billing conf that's look user friendly.

for deployment

  1. CRA is not deployment friendly vite will solve the bug
  2. Create a container for both server and client and build in docker and then deploy in render.
  3. create an other private git repo consisting the address of the render address like
    const response = await fetch("https://syx.onrender.com/api/get-pizza")and in server do use cors
    npm i cors, app.use(cors()) and allow every origin like "*"
  4. Deploy the client in vercel and change the domain according to your use cases. Everything will be awesome.

And this is a 2+ years project so for that time being that's nice but this stuff is for those who recently wanna build this via cloning.

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

No branches or pull requests

1 participant