To understand it, please read the article Understand Feature Flags by Practice with Unleash.
Execute the command:
docker-compose up
When everything is up, you can access Unleash with the address http://localhost:4242/ and credential:
admin
unleash4all
You can access the Python/Django application at three addresses:
- Home: http://localhost:8000/
- APIs: http://localhost:8000/api/v1/
- Admin: http://localhost:8000/admin/
Use the credential admin:admin
for the last address.
You can access the JavaScript/Next.js application from the address:
You can access the C#/ASP.NET Core with Razor Pages from the address:
Access the project's link:
Then click on Import
icon. It's above the Event log
tab. Now select the file the JSON file from the iac folder:
Follow the wizard and finish the importing process. If you access http://localhost:4242/features
you should see the following image:
Let's say your Unleash instance is fully configured, then you can access the PostgreSQL container with docker-compose exec db bash
and execute the following command:
cd /tmp && pg_dump --clean -U unleash -w -h localhost development > unleash-db.dump.sql
Copy the dump from the container to your local machine using the docker cp command. Run this command outside the container:
docker cp <container_name>:/tmp/unleash-db.dump.sql ./
Now you are able to use psql
to restore the backup.
Execute the command:
docker-compose up
Copy the dump file to the container:
docker cp ./iac/unleash-db.dump.sql b18d047f7b4b:/tmp
Access its container:
docker-compose exec db bash
Given you have the dump file, then you can issue:
psql -U unleash -w -h localhost development < /tmp/unleash-db.dump.sql