You can run this project by manually setting up everything or you can simply run it with docker or docker-compose to avoid overhead hustles
To run this with docker please run the following commands. Please make sure that docker is installed in your system.
> git clone https://github.com/detronetdip/E-commerce.git
> cd {to your cloned path}/E-commerce/
> docker build -t app -f Dockerfile .
> cd database
> docker build -t app_database -f Dockerfile .
> docker run \
--name database \
-e MYSQL_ROOT_PASSWORD='passwd' \
-p 9306:3306 app_database
> docker run --name web_app -p 3000:80 app
- Go to your browser and type
http://localhost:3000
and the whole project is ready to use.
To run this with docker-compose please run the following commands. Please make sure that docker and docker-compose is installed in your system.
> git clone https://github.com/detronetdip/E-commerce.git
> cd {to your cloned path}/E-commerce/`
> docker-compose up -d --build
- Go to your browser and type
http://localhost:3000
and the whole project is ready to use. - *if you initialy encoutered connection refused error please wait for few seconds and relod the page.