-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add installation guide to the README.md file
- Loading branch information
Showing
1 changed file
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,38 @@ | ||
# Portfolio Asset Network – Digitized Assets | ||
# PANDA API | ||
|
||
## Installation with Docker 🐋 | ||
|
||
> **_NOTE:_** The installation assumes that you have [Docker](https://docs.docker.com/get-docker/) | ||
> and [Docker Compose](https://docs.docker.com/compose/install/) installed on your machine. | ||
1. Clone the repo: | ||
```sh | ||
git clone [email protected]:coldic3/panda.git | ||
``` | ||
|
||
2. Download the latest version of Docker images: | ||
```sh | ||
docker compose pull --include-deps | ||
``` | ||
|
||
3. Build Docker images: | ||
```sh | ||
docker compose build --no-cache | ||
``` | ||
|
||
4. Start the containers: | ||
```sh | ||
docker compose up -d | ||
``` | ||
|
||
5. Generate the public and private keys used for signing JWT tokens: | ||
```sh | ||
docker compose exec php sh -c ' | ||
set -e | ||
apk add openssl | ||
php bin/console lexik:jwt:generate-keypair | ||
setfacl -R -m u:www-data:rX -m u:"$(whoami)":rwX config/jwt | ||
setfacl -dR -m u:www-data:rX -m u:"$(whoami)":rwX config/jwt | ||
' | ||
``` | ||
|
||
Manage your assets with ease – just the way you want it thanks to no-limit scalability and expandability. |