An implementation of the E-Commerce Web Application Template using Vue3 with Composition API, TypeScript, Express, PostgreSQL and MongoDB.
- This project is my second web application.
- You may check the documentation in the root folder for further information. English version would be slowly updated due to my high academic load...
- Docker : Use the latest version.
- You May have basic knowledge on TCP/IP, Port Mapping, and Docker CLI.
-
Clone the Repository
git clone https://github.com/csning1998/e-commerce-full-stack.git cd e-commerce-full-stack -
Project Setup
docker compose up
-
In case you need to hot-install some Node packages, you have to find the container ID.
docker ps
-
Then you can execute the following command to enter the container
docker exec -it {target-node-container-id} shIf the indicator of the terminal turns to
/application #or similar, you can install the packages usingnpm install {package-name}.You can use the following command th access Postgres database by modifying the following code:
docker exec -it {container-id} psql -U {POSTGRES_USER} {POSTGRES_DB}then you can type password to access the database.
For the default setting given in
backend/src/models/user.tsand.env-samplefiles:docker exec -it 92b4e6d40b9b psql -U e-commerce-dev e-commerce