Skip to content

Some deployment fix! #3

@felixoder

Description

@felixoder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions