Skip to content

Matithieu/boilerplate-production-app

Repository files navigation

Boilerplate Project

Installation

  1. Clone the repository:

     git clone https://github.com/Matithieu/boilerplate-production-app.git
  2. Configure the environment variables: Copy the file template.env to .env and modify the values as needed.

  3. Install the dependencies for end-to-end tests:

    cd e2e
    pnpm install

Usage

Start the services

To start the services in development mode:

./devcli.sh start dev

To start the services in production mode:

./devcli.sh start prod

Other useful commands

  • Stop the services:

    ./devcli.sh stop {dev|prod}
  • Install repositories or update them:

    ./devcli.sh install
  • Remove Docker volumes:

    ./devcli.sh remove_volumes {dev|prod}
  • Create an environment on all repositories:

    ./devcli.sh create_env
  • Initialize certificates for production mode (Modify Nginx and DNS server config):

    ./devcli.sh init
  • Generate certificates (for development mode):

    ./devcli.sh generate_certificates
  • Reload a service:

    ./devcli.sh reload {dev|prod} {service_name}

Configuration

Nginx

The Nginx configuration file is located at config/nginx/setup.conf.

End-to-end test environment

The configurations for end-to-end tests are located at e2e/src/config/env.config.ts.

Contribution

Contributions are welcome. Please submit a pull request for any changes.

License

This project is licensed under .


About

Boilerplate for a production app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published