Git Product home page Git Product logo

trpc-todo's Introduction

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

trpc-todo's People

Contributors

raulcv avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.