Giter Site home page Giter Site logo

kushwahramkumar2003 / express-js-next-js-docker-monorepo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hironate/express-js-next-js-docker-monorepo

1.0 0.0 0.0 97 KB

This comprehensive repository serves as a solid foundation for building powerful web applications using Express.js and Next.js frameworks. We have included a complete setup for end-to-end tests so you can get started with tests quickly. Additionally, the entire application is containerised with Docker for seamless deployment and scalability.

Shell 3.15% JavaScript 93.03% CSS 3.82%

express-js-next-js-docker-monorepo's Introduction

Fullstack Express.js, Next.js Monorepo

This comprehensive repository serves as a solid foundation for building powerful web applications using Express.js and Next.js frameworks. We have included a complete setup for end-to-end tests so you can get started with tests quickly. Additionally, the entire application is containerized with Docker for seamless deployment and scalability.

If you find this repository helpful, don't forget to star it!

Forking the Repository

If you want to contribute to this project or make changes, you can fork the repository. Follow the steps below to fork and contribute:

  1. Click on the "Fork" button on the top-right corner of this repository page. This will create a copy of the repository under your GitHub account.

  2. Clone the forked repository to your local machine:

    git clone [email protected]:hironate/express-js-next-js-docker-monorepo.git

Prerequisites

Make sure you have the following software installed on your machine:

  • Docker
  • Docker Compose
  • Node.js

Installation

  1. Navigate to the devops directory:

    cd express-js-next-js-docker-monorepo/devops
  2. Make the init-database.sh script executable:

    chmod +x init-database.sh
  3. Build and start the containers using Docker Compose:

    docker compose up

    This command will spin up the backend and frontend services along with the PostgreSQL database. The backend will be accessible at http://localhost:3000, and the frontend will be accessible at http://localhost:3001. The PostgreSQL database will be running on localhost on port 5432.

Database Access

To access the PostgreSQL database, you can use tools like pgAdmin. Follow the steps below:

  1. Open pgAdmin.
  2. Set the following credentials:
    • Host: localhost
    • Database: monorepodb
    • User: monorepo_user
    • Password: monorepo-password
    • Port: 5432

Running Backend Tests

To run the backend tests in the "backend" directory, follow the steps below:

  1. Open a terminal or command prompt.

  2. Navigate to the "backend" directory of the monorepo:

    cd express-js-next-js-docker-monorepo/backend
  3. Run the following command to execute the backend tests:

    npm run test:local

    This command will run the tests and display the test results in the terminal or command prompt.

Contribution Guidelines

To contribute to this project, please follow these guidelines:

  • Fork the repository and make your changes in a new branch.
  • Ensure that your code is well-documented and follows the existing coding style.
  • Write clear commit messages for your changes.
  • Make sure all tests pass successfully.
  • Open a pull request with a detailed description of your changes.

Authors

  • Hiren Kavad
    • This project is co-authored by Hiren Kavad. You can find more information about the author on their website: hirenkavad.com.
  • Yatharth Andhariya

Acknowledgments

License

This project is licensed under the MIT License.

express-js-next-js-docker-monorepo's People

Contributors

hironate avatar

Stargazers

Pankaj Prajapati avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.