Skip to content

ToDo app - frontend React, backend PHP, DB MySQL, build in docker compose up

Notifications You must be signed in to change notification settings

nebojsa91markovic/todo_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo App

Todo App ready for production in Docker container.

Table of contents

General info

To Do app completely build from scratch. App build using React.js on frontend, PHP on a backend side and MySQL for database table. Docker file set and ready for production.

Technologies

  • ReactJS
  • PHP
  • Docker

Setup

Demo Docker App

This folder contains a Docker app that is meant to be used for demonstration purposes only. You should follow the example in this code in your own apps and then remove this sample app once things are working.

This Docker container contains a simple "Hello World!" Node.js app.

Running the app in local development

The provided Docker Compose file allows you to run the app locally in development. To start the container, run:

$ docker-compose up

Once the stack has launched, you can test the application by navigating to:

Executing the Tests

Simply run:

$ npm run test

Building and pushing the Docker image to Container Registry

  1. Configure Docker to use gcloud as a credential helper. Your Docker client version must be 1.13 or newer.
gcloud auth configure-docker
  1. Build and tag your image.
docker build -t [GCP-CONTAINER-REGISTRY-HOSTNAME]/[PROJECT-ID]/sample-app-docker .
  1. Push the Docker image
docker push [GCP-CONTAINER-REGISTRY-HOSTNAME]/[PROJECT-ID]/sample-app-docker

The Container Registry hostname will vary according to your region. For more information, check the Container Registry docs.

Features

List of features ready and TODOs for future development

  • Rebuild this app using hooks, use effects, dispatch etc.
  • Rebuild way of storaging tasks, create it in local storage.

Status

Project is finished as far as this version is concerned.

Contact

Created by @Nebojsa Markovic - feel free to contact me!

About

ToDo app - frontend React, backend PHP, DB MySQL, build in docker compose up

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published