Live DEMO: http://45.90.218.76:8001/
This repo contains project of online-shop based on next tech stack: ReactJs, Redux, Scss, NodeJs, Sequelize, Koa2Js, Postgresql.
For ADMIN:
- login: [email protected]
- password: admin_passw
For USER:
- login: [email protected]
- password: john_passw
- Node v12.x (you could try v10)
- NPM v6.x
npm install(cd ./backend && npm install)(cd ./frontend && npm install)(cd ./frontend && npm run build)
- Backend template: 'backend' folder
- Frontend template: 'frontend folder
- Database backups: 'ops' folder
docker-compose file uses postgres as database. You can change db_user and db_password in docker-compose.yml file.
For migration: npx sequelize-cli db:migrate --url 'postgres://postgres:lineate@localhost:5440/lntsunday'
Run all commands project root folder
docker-compose up -d
docker-compose logs -f web
docker-compose up -d- Go to http://localhost:8001
cd ./frontend && npm run watch
docker-compose exec db sh -c 'exec pg_dump -U postgres lntsunday > /backup/dump.sql'
docker-compose exec db sh -c 'exec psql -U postgres lntsunday < /backup/dump.sql'
docker-compose stop && docker-compose down --rmi local --volumes --remove-orphans










