API Rest with the these operations
- GET
- POST
- DELETE
It's fully functional persisting data in mongodb database
- NodeJS
- Express
- @trpc/server
- mongoose
- zod
- dotenv
- ts-node-dev ...
clone this repository, you need git installed in your machine ¡ how to install link
In your local machine open some cmd, bash etc command line tool. Located where you will have your local repository. You can navigate with cd somepath/mydirectory etc.
git clone https://github.com/raulcv/trpc-todo.gitEnter to your local repository created with git clone
cd trpc-todo Install NPM Dependencies
npm installcreate a .env or you can created it manually into your project folder
touch .envInto .env file copy from envtext.txt file included, and change with your own credentials
Run the tRPC API on dev mode
npm run devOpen your browser and type localhost:3000/
Go to trpc-client
cd trpc-clientInstall NPM Dependencies for client app
npm installFinally run the React APP on dev mode 🤪
npm run devOpen your browser and type localhost:3007/
With ❤️ by raulcv