For reproducibility and ease of use, you can use the provided docker-compose file:
-
Comment out the portion pointing at the already built image
image: chatgptclone/app:0.3.3
-
Uncomment the portion pointing at the local source code
# image: node-api # build: # context: . # target: node-api
-
Build your local source code for the
node-api
targetdocker build ` --target=node-api ` -t node-api ` .
-
Docker-compose up
docker-compose up
-
Install the prerequisites on your machine. See section above.
-
Run the app on your machine. See section above.
-
Install the global dependencies
npm ci npx playwright install --with-deps
-
Run tests
npx playwright test
If everything goes well, you should see a passed
message.