https://github.com/testdrivenio/taxi-react-app
On notebook:
`C:\Temp\redis-2.4.5-win32-win64\64bit`
Create a new database and user with the following commands:
su postgres
createdb -U postgres
psql -U postgres
<WHAT EVER NAME> =# CREATE USER taxi WITH SUPERUSER CREATEDB CREATEROLE PASSWORD 'taxi';
<WHAT EVER NAME> =# CREATE DATABASE taxi OWNER taxi;
dropdb taxi
psql -f taxi.sql
pg_dump taxi > taxi.bak
taxi > taxi_app
trips > trips
http://localhost:8001/api/sign_up/
http://localhost:8001/api/log_in/
http://localhost:8080/#/
http://localhost:8080/#/log-in/
http://localhost:8080/#/sign-up/
http://localhost:8080/api/sign_up/
http://localhost:8080/api/log_in/
http://localhost:8080/admin/
http://localhost:3001
http://localhost:3001/#/log-in
http://localhost:3001/#/sign-up
cd taxi-app
npx create-react-app client
cd client
npm start
npm install cypress --save-dev
npm uninstall cypress --save-dev
npx cypress open
npx cypress run --spec cypress/integration/authentication.spec.js
- FROM: tells Docker what base image to use as a starting point.
- RUN: executes commands inside the container.
- WORKDIR: changes the active directory.
- USER: changes the active user for the rest of the commands.
- EXPOSE: tells Docker which ports should be mapped outside the container.
- CMD: defines the command to run when the container starts.
docker rmi $(docker images -a -q)
docker rmi $(docker images -a | grep none | awk '{ print $3; }'
docker-compose up -d
docker-compose down
docker-compose down && docker-compose up -d
docker-compose down && docker-compose up -d --build
docker-compose down && docker-compose build taxi-server
docker-compose up -d --builddocker build . -t taxi-server:latest
docker build . -t taxi-database:latest
docker build . -t taxi-client
docker build -f Dockerfile.client . -t igorzna/taxi-client
docker build -f Dockerfile.cypress . -t django3realtimetaxi_taxi-cypress
docker run -d
docker images
docker run -it -d sample:dev -p 3001:3000
docker run -it -d igorzna/taxi-client:latest
docker-compose restart <SERVICE_NAME>
mklink "symbol_linked_db.sqlite3" "..\server\taxi\db.sqlite3"