Skip to content

satyazzz123/sample-fullstack-application

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Fullstack Application

This is a sample fullstack application using a Next.js frontend, a NestJS backend, PostgreSQL for the database, and Redis for caching.

My Approach

I contaierised the front end and backend wrting Dockerfiles for them. THen used Github Actiosn to push the images to a registry , then used docker compose for spinning up the wole application with REDIS and POSTGRES. I used a wait-for-it.sh script to ensure that the backend service waits for the PostgreSQL and Redis services to be fully up and running before starting. This is necessary to avoid connection errors that might occur if the backend tries to connect to the database or cache before they are ready.

How to Run

git clone https://github.com/satyazzz123/sample-fullstack-application.git 
cd sample-fullstack-application
docker compose up

Results

Backend service working

image

Frontend service working

image

Data inserted into Frontend image

GET API

image

Getting data through API

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 56.0%
  • Shell 28.8%
  • Dockerfile 6.1%
  • JavaScript 5.4%
  • CSS 3.7%