Skip to content

jerry914/docker-vue-ruby-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

docker-vue-ruby-template

Overview

This project is a full-stack web application that consists of a Vue.js frontend and a Sinatra backend. It is containerized using Docker to ensure a consistent development and deployment environment.

Prerequisites

  • Docker: Ensure you have Docker installed on your machine. Download Docker
  • Docker Compose: Ensure you have Docker Compose installed on your machine. It comes bundled with Docker Desktop.

Project Structure

my-app/
โ”‚   docker-compose.yml
โ”‚   README.md
โ”œโ”€โ”€โ”€my-vue-app/
โ”‚   โ”‚   (rest of your frontend files and directories)
โ””โ”€โ”€โ”€my-sinatra-app/
    โ”‚   (rest of your backend files and directories)

Setting Up the Development Environment

  1. Clone the repository:

    git clone https://github.com/jerry914/docker-vue-ruby-template.git
    cd docker-vue-ruby-template
  2. Build the Docker images:

    docker-compose build
  3. Start the development servers:

    docker-compose up
  4. The frontend and backend applications should now be running:

  5. Stop the Application: To stop the application and the running containers, use the following command:

    docker-compose down

Development

Hot Reloading ๐Ÿ› ๏ธ: todo

The setup supports hot reloading. Changes made to the source code on your machine will automatically reflect in the running containers without requiring a restart.

Accessing the Containers ๐Ÿ› ๏ธ: need test

If needed, you can access the running containers using the following commands:

  • Backend:

    docker exec -it my_sinatra_backend /bin/bash
  • Frontend:

    docker exec -it my_vue_frontend sh

Deployment

๐Ÿ› ๏ธ: todo

  1. publish to hekoku
  2. env
  3. database
  4. CI/CD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published