Skip to content

benderalex/nest-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick start for a project using docker-compose + nestjs + react|vue + postgresql

Nest.js React Vue.js PostgreSQL

Prerequisites

  • Docker
  • Docker Compose

Usage

  1. Clone the repository to your local machine:

    git clone https://github.com/benderalex/nest-vue
    
  2. Navigate to the repository directory:

    cd nest-vue
    
  3. Make sure Docker and Docker Compose are installed:

    docker -v
    docker-compose -v
    

    If they are not installed, please refer to the Docker documentation to install them.

  4. Make the script executable:

    chmod +x app.sh
    
  5. Run the script with the desired command:

    ./app.sh [command]
    

    Replace [command] with one of the following options:

    • init - Initializes the project with the specified frontend framework (React or Vue.js). This command sets up the project directories, installs dependencies, and starts the application.

      • To initialize with React, use: ./app.sh init react
      • To initialize with Vue.js, use: ./app.sh init
    • backend i [packages] - Installs additional packages for the backend. Specify the packages as space-separated arguments after the command. For example:

      ./app.sh backend i package1 package2
      
    • frontend i [packages] - Installs additional packages for the frontend. Specify the packages as space-separated arguments after the command. For example:

      ./app.sh frontend i package1 package2
      
    • backend - Accesses the backend container's bash shell.

    • frontend - Accesses the frontend container's bash shell.

    • stop - Stops the Docker containers.

    If no command is provided, the script will default to starting the application using Docker Compose.

Example Usage

  • Initialize the project with React:

    ./app.sh init react
    
  • Install additional backend packages:

    ./app.sh backend i package1 package2
    
  • Access the frontend container's bash shell:

    ./app.sh frontend
    
  • Stop the Docker containers:

    ./app.sh stop
    

Releases

No releases published

Packages

No packages published