Skip to content

swainson-f-holness/nestjs-react-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to start

Run postgresql database and PgAdmin on docker.

docker-compose up -d

Access to PgAdmin:

  • URL: http://localhost:5050
  • Username: pgadmin4@pgadmin.org (as a default)
  • Password: admin (as a default)

Add a new server in PgAdmin:

  • Host name/address postgres
  • Port 5432
  • Username as POSTGRES_USER, by default: postgres
  • Password as POSTGRES_PASSWORD, by default postgres

Yarn install & Env files setup

Following command will run yarn install on both nestjs api and react client app and generate env files.

yarn install
yarn setup

Run DB migration

yarn migration:run

Generate DB Seeds

To generate two default users - admin and regular user.

yarn seed

Start API and Client

yarn start

*** If you are using Linux/MacOS, update "npm start" script inside /app/package.json ***

(From)
"start": "set PORT=3001 && react-scripts start",

(To)
"start": "PORT=3001 react-scripts start",

That's it!!!

NestJS api is running at http://localhost:3000 and React client app is running at http://localhost:3001

There are 6 test users. All users' password is password

Admin User
username: admin
Regular User
username: user1
username: user2
username: user3
username: user4
username: user5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published