Skip to content

A React.js application is a document-based NoSQL database demo that stores data to local storage. ( Cloud Firestore Demo ). For undoable operations, Command Pattern is used.

Notifications You must be signed in to change notification settings

muhammedsaidkaya/react-nosql-database

Repository files navigation

Introduction

React application which is document-based NoSQL database demo that stores data to local storage. ( Cloud Firestore Demo ). Command Pattern for encapsulating CRUD requests on any document and by using stack of requests, undoable redoable operations created and collections are committed, extracted (XML, JSON)

Hacettepe University, Bachelor's Degree, Computer Engineering - Design Patterns Course Term Project

Use-cases: https://www.youtube.com/watch?v=P5j-L-Bs5AY


You can download Docker image of this project in the below link.

Image: https://hub.docker.com/r/uzumlukek/local-firestore

Image created with following Dockerfile.

FROM node:12-alpine
WORKDIR /usr/src/app 
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD [ "npm", "start" ]

You can clone the repository and edit source code and up the project.

git clone https://github.com/muhammedsaidkaya/react-nosql-database-demo.git
cd react-nosql-database-demo
docker-compose up --build

You can deploy the application on AWS EC2 instances by following steps.

  • Creating a Virtual Private Cloud
  • Subnet creation in 2 different availabiltiy zones
  • Receiving external requests to VPC with Internet Gateway
  • Associating requests to subnets with route table
  • Launching 2 EC2 instances on 2 subnets and pulling the image from Docker Hub and run the container
  • Allowing port 80 of EC2 instances with secure groups
  • Accessing 2 EC2 instances from the same dns name with load balancer

Userdata

#!/bin/bash -ex 
curl -fsSL https://get.docker.com -o get-docker.sh 
sh get-docker.sh 
sudo usermod -aG docker $(whoami) 
sudo docker container run -p 80:3000 -d uzumlukek/local-firestore:testing 

You can see the images of project.

About

A React.js application is a document-based NoSQL database demo that stores data to local storage. ( Cloud Firestore Demo ). For undoable operations, Command Pattern is used.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages