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.git
Enter to your local repository created with git clone
cd trpc-todo
Install NPM Dependencies
npm install
create a .env or you can created it manually into your project folder
touch .env
Into .env file copy from envtext.txt file included, and change with your own credentials
Run the tRPC API on dev mode
npm run dev
Open your browser and type localhost:3000/
Go to trpc-client
cd trpc-client
Install NPM Dependencies for client app
npm install
Finally run the React APP on dev mode 🤪
npm run dev
Open your browser and type localhost:3007/
With ❤️ by raulcv