This is a sample fullstack application using a Next.js frontend, a NestJS backend, PostgreSQL for the database, and Redis for caching.
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.
git clone https://github.com/satyazzz123/sample-fullstack-application.git
cd sample-fullstack-application
docker compose up
Backend service working
Frontend service working
GET API
Getting data through API




