Skip to content

Latest commit

 

History

History
79 lines (62 loc) · 1.87 KB

README.md

File metadata and controls

79 lines (62 loc) · 1.87 KB

TRPC API with Reactjs Consumer all of them with TypeScript

API Rest with the these operations

  • GET
  • POST
  • DELETE

It's fully functional persisting data in mongodb database

🛠  This project uses the following technologies:

  • NodeJS
  • Express
  • @trpc/server
  • mongoose
  • zod
  • dotenv
  • ts-node-dev ...

Run this project in your local machine

clone this repository, you need git installed in your machine ¡ how to install link GIT

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

For backend API

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/

For react frontend APP

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

🤗 If you found helpful this repo, let me a star or ... 🐣

Buy Me A Coffee