Skip to content

Commit

Permalink
docs: Update README and DEVELOP
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Sep 29, 2023
1 parent 6689916 commit 21e9ea6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 29 deletions.
13 changes: 6 additions & 7 deletions DEVELOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@

1. Go to http://localhost:3000

1. Happy hacking!
1. Initialize git hooks

```Bash
cd src/addons/volto-timeline-block/
yarn prepare
```

1. Happy hacking!

### Or add @eeacms/volto-timeline-block to your Volto project

Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)
Expand All @@ -48,18 +50,15 @@ Before starting make sure your development environment is properly set. See [Vol

1. Install

yarn develop
make develop
yarn

1. Start backend

docker pull plone
docker run -d --name plone -p 8080:8080 -e SITE=Plone -e PROFILES="profile-plone.restapi:blocks" plone
docker run --pull always -it --rm --name plone -p 8080:8080 -e SITE=Plone plone/plone-backend

...wait for backend to setup and start - `Ready to handle requests`:

docker logs -f plone

...you can also check http://localhost:8080/Plone

1. Start frontend
Expand Down
29 changes: 7 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,16 @@
![Timeline Block](https://github.com/eea/volto-timeline-block/raw/develop/docs/timeline-block.png)
![Timeline Block Demo](https://github.com/eea/volto-timeline-block/raw/docs/docs/volto-timeline.gif)


## Getting started

### Try volto-timeline-block with Docker

1. Get the latest Docker images

```
docker pull plone
docker pull plone/volto
```

1. Start Plone backend
```
docker run -d --name plone -p 8080:8080 -e SITE=Plone -e PROFILES="profile-plone.restapi:blocks" plone
```

1. Start Volto frontend
git clone https://github.com/eea/volto-timeline-block.git
cd volto-timeline-block
make
make start

```
docker run -it --rm -p 3000:3000 --link plone -e ADDONS="@eeacms/volto-timeline-block" plone/volto
```

1. Go to http://localhost:3000
Go to http://localhost:3000

### Add volto-timeline-block to your Volto project

Expand All @@ -65,15 +51,15 @@
],

"dependencies": {
"@eeacms/volto-timeline-block": "^1.0.0"
"@eeacms/volto-timeline-block": "*"
}
```

* If not, create one:

```
npm install -g yo @plone/generator-volto
yo @plone/volto my-volto-project --addon @eeacms/volto-timeline-block
yo @plone/volto my-volto-project --canary --addon @eeacms/volto-timeline-block
cd my-volto-project
```

Expand Down Expand Up @@ -106,4 +92,3 @@ See [LICENSE.md](https://github.com/eea/volto-timeline-block/blob/master/LICENSE
## Funding

[European Environment Agency (EU)](http://eea.europa.eu)

0 comments on commit 21e9ea6

Please sign in to comment.