jitesh-a / csv-uploader

CSV Uploader developed using MERN stack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

csv-uploader

You must have Docker Installed in your System !

How to run the App :

In Development Mode :

First copy the content of docker-compose-dev.yml to docker-compose.yml

and also copy the content of server/src/index.dev.js to server/src/index.js

Run the app using :

$ docker-compose up --build --remove-orphans

or

$ docker-compose up -d

Above command will start the services on (-d) detach mode (similar like running the app in background)

Then you can check the status of the containers by running:

$ docker ps

The App should be up :

visit client : http://localhost:3000

visit server : http://localhost:8080

To check the status of the running containers :

docker-compose ps

In Production Mode :

First copy the content of docker-compose-prod.yml to docker-compose.yml

and also copy the content of server/src/index.prod.js to server/src/index.js

Run the app using :

$ docker-compose up --build -remove-orphans

The App should be up at http://localhost:8080

Build the image for server :

docker build -t csv-uploader-server:1 . docker images docker run --name "csv-uploader-server" -p 80:8080 csv-uploader-server:1 docker ps

About

CSV Uploader developed using MERN stack


Languages

Language:JavaScript 89.5%Language:HTML 4.8%Language:Dockerfile 3.1%Language:CSS 2.5%Language:Shell 0.2%