Preliminary requirements:
- Node.js >=
16.14.2
- npm >=
8.16.0
- Docker >=
20.10.14
- docker-compose >=
1.29.2
- GNU Make >=
3.81
Installing dependencies:
npm i
Building backend:
npm run build
Building frontend:
npm run frontend:build
Starting in production mode:
npm start
Starting in development mode:
npm run dev
Starting in development mode (with MYSQL Server):
make run-dev
Stopping MYSQL Server:
make stop-dev
List of variables:
WEBPACK_DEV
- Webpack middleware starting if 1. Default: 0.PORT
- Server port listening. Default: 80.DATABASE_HOST
- Database host. Default: localhost.DATABASE_USER
- Database user. Default: root.DATABASE_PASSWORD
- Database password. Default: qwerty123.DATABASE_BASE
- Database base. Default: contacts-app.
Dotenv support is present!
Backend code formatting:
npm run format
Frontend code formatting:
npm run frontend:format
Building image:
make build
Pushing image:
make push
Pulling image:
make pull
Staring image:
make run
Stopping image:
make stop
General stack:
Frontend stack:
Backend stack:
List of accounts:
-
Account #1
- Login: login
- Password: qwerty123
-
Account #2
- Login: dev2alert
- Password: 0000
-
Account #3
- Login: artem
- Password: 123456
Contacts App already publicly available!