The website is live guys
I used vercel to deploy my mern stack project and it was rough
. I first tried deploying the the frontend and the backend separately. After reading blogs and trying I ended up deploying the express backend but at that point I had learned that there’s vercel cli with which I don’t have to push commits everytime to find out errors in production. I can just use “vercel dev” command to create a production like environment but for development and testing out. I couldn’t figure out how to run frontend and backend seperately using vercel cli.
I then tried deploying the whole repo. The issue with this was I couldn’t configure the website with folder structure like this
chess-website
----frontend
----backend
Maybe there’s a way to make this work (I couldn’t
), I chose the easier path which I’m kinda familiar with.
In this approach there’s no frontend and backend directory. The backend is renamed to api which allows vercel to recognize that it’s the backend and all the contents of the frontend folder will be moved up to the root directory. Errors came as I changed the folder structure but fixed on after another. The backend wasn’t working which got me really confused. There were many issues in this approach as well but atlast the website is running and backend is working properly
.
The two days break I took from coding is over and i think I feel better. Here’s the link to the website:
Comments 5
Yoo, when are you shipping it btw ?
Plan is to ship before september 15
oh okay =)
Wow A chess website :))
Yes, a chess website :) @Mk1A
Sign in to join the conversation.