Live link - https://posts-api-app.onrender.com/
Deployment link (private) - https://dashboard.render.com/web/srv-ck333mmru70s73b2db3g
The main goal is to build the backend. I copied the frontend from Udemy.
- The goal is to build a REST API (data) app.
- There is a React frontend, but it's optional.
- The API endpoints work independently too.
- backend: root folder
- frontend: /frontend
Advice: use pnpm
especially for React. It's a very bad FE app I copied from Udemy - takes a very long time with 'npm'.
- Do
npm install
at root folder, and inside/frontend
. - To start frontend -
npm run fe
. To run be -npm run be
. - To start both (e.g. at deployment machine) - run
npm run serve
FE code I copied is ancient, uses class components and takes more than 10 min to npm install
.
- use
pnpm
- Don't build it on the deploy site (render.com, AWS), instead build it locally and place it in (as)
public/build
. I've added gitignore exception for this.