Skip to content
/ oauth2 Public template

A simple project built on nodejs to create a auth login with Google

Notifications You must be signed in to change notification settings

brunorafaeI/oauth2

Repository files navigation

Getting Started with Docker

This is a simple project monorepo built with nodejs to estableshing connection to access with auth like: Google, Facebook, etc.

Requirements

  • Docker and docker-compose
  • vscode or your own preferred IDE

Before to start with docker or manually, you will need to install all dependencies of projects :

  cd backend && npm install
  cd frontend && npm install

Then, you can right up all containers using the next command:

Docker

docker-compose up -d --build

Manually

  cd backend && npm run dev:server
  cd frontend && npm run dev:server

Further commands (Docker)

  • docker-compose down (down the containers)
  • docker-compose up -d (up again the containers) not necessary to rebuild

Working with Prisma

For update migration via docker container with the following commands:

docker exec -it oauth_backend sh # (to go inside docker container)
npx prisma migrate reset # to reset migration
npx prisma db push # to push migration
npx prisma generate # to update prisma client configuration

About

A simple project built on nodejs to create a auth login with Google

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •