Skip to content

lukascivil/react-admin-nestjs-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-admin nestjs postgresql

Tasker-Client, a task registration application

(CRUD example of React-Admin and RTK Query + nestjs + postgress)

Description

Tasker is an application for registering tasks. The client side was created using React-Admin following the REST pattern on dataproviders. The backend application that will server the API was created using nestjs framework with postgresql. This is an example of a react-admin application and shows how powerful the tool is, and how it is possible to create CRUD systems with nestjs.

The example project follows the line of being a laboratory for study, therefore tests with RTK Query are present as well.

This is a monorepo tha uses yarn workspaces to orchestrate it.

Screenshot

image

GIF 15-11-2020 20-29-13

1- Installation

$ yarn

2- Running the app (react admin client + nestjs server + postgres DB)

# Development
$ yarn start

3- Create first user with login and password

// You need a client to connect to postgres on 127.0.0.1:5432
// Its recommended to use https://www.heidisql.com/ but feel free to decide.
INSERT INTO "public"."user" ("id", "name", "email", "password") VALUES (1, 'admin', '[email protected]', "admin");

Project (nestjs server) Architecture Documentation

# Docs with compodoc
$ yarn compodoc

open http://localhost:8080/

image

Project (nestjs server) Health

# Health API with Terminus
open http://localhost:3000/health

If you want to view the tables in the DBMS and the documents created, you can use a graphical tool to access. HeidiSQL is a free and powerful client for MariaDB, MySQL, Microsoft SQL Server, PostgreSQL and SQLite.

About

CRUD example with react-admin, nestjs and postgres

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published