The front end of the single page application is written in VueJS, the back end uses NodeJS and MongoDB. The application displays a list of products received from a third-party API and then saved in the MongoDB database. Users can select products, add them to cart and order them. For the manager, there is an admin page for managing orders. The application is set up with Docker.
Make sure you have MongoDB client, npm and last version of NodeJS set up on your local machine.
- Docker
latest
- Docker compose
latest
Note: App runs on the Ports 8080, 3000, 2017. Make sure they're free. Note: Application is still in development!
cd /client
npm run serve
docker-compose build
docker-compose up
- client (Fronted app on VueJS runs on port :8090)
- server (mongoose + expressJS runs on port :3000)
- mongo (mongd server runs on port :27017)
- mongo-setup (to fill MongoDB with data (products and admin), runs on port :8089)
- WebSocket to dispatch orders (port :8999)
- Mobile --port 9988
To lint errors in /client
folder:
npm run lint
To parse items from Aliexpress run:
cd mongo-setup
node ./parse
This command will parse Aliexpress and automatically save parsed items to items.txt
You can login in /admin router with password: login: admin pass: 12345