Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
karlomikus committed Nov 21, 2022
1 parent 50ffc89 commit 65b5186
Showing 1 changed file with 38 additions and 28 deletions.
66 changes: 38 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@

## 🍸 Bar assistant

Bar assistant is a self hosted application for managing your home bar. It allows you to add ingredients and create custom cocktail recipes.
Bar assistant is a self hosted application for managing your home bar. It allows you to add your ingredients, search for cocktails and create custom cocktail recipes.

This repository only contains the API server, if you are looking for easy to use web client, take a look at [Salt Rim](https://github.com/karlomikus/vue-salt-rim).

Note: This application is still in development and there will be breaking changes and loss of data. I do not recommend using this in a "production" environment until a stable version is released.

## Features

- Includes all current IBA cocktails
- Over 100 ingredients
- Endpoints for managing of ingredients and cocktails
Expand All @@ -26,33 +23,55 @@ Note: This application is still in development and there will be breaking change
- Ability to upload and assign images
- Shopping list for missing ingredients
- Automatic indexing of data in Meilisearch
- Ingredient substitutes
- Cocktail ingredient substitutes
- Assign glass types to cocktails

## Planned features

- Cocktail recipe sharing
- Cocktail and shopping list printing
- User defined cocktail collections
- Cocktail ratings
- Add user notes to cocktail
- Add cocktail flavor profiles
- Cocktail recipe scraping
- Importing and exporting cocktails

## Installation

This application is made with Laravel, so you should [follow installation instructions](https://laravel.com/docs/9.x/deployment) for a standard Laravel project.
This application is made with Laravel, so you should check out [deployment requirements](https://laravel.com/docs/9.x/deployment) for a standard Laravel project.

### Requirements:
The basic requirements are:

- PHP >=8.1
- PHP >= 8.1
- Sqlite 3
- Working [Meilisearch server](https://github.com/meilisearch)
- (Optional) Redis server
- Working [Meilisearch server](https://github.com/meilisearch) instance
- (Optional) Redis server instance

## Docker setup

Docker setup is the easiest way to get started. This will run only the server but you can [checkout how to setup the whole Bar Assistant stack here.](https://github.com/karlomikus/vue-salt-rim#docker-compose)

``` bash
$ docker volume create bass-volume

$ docker run -d \
--name bar-assistant \
-e APP_URL=http://localhost:8000 \
-e MEILISEARCH_HOST=http://localhost:7700 \
-e MEILISEARCH_KEY=masterKey \
-e REDIS_HOST=redis \
-v bass-volume:/var/www/cocktails/storage \
-p 8000:80 \
kmikus12/bar-assistant-server
```

Docker image exposes the `/var/www/cocktails/storage` volume, and there is currently and issue with host permissions if you are using a local folder mapping.

### Meilisearch

Bar Assistant is using Meilisearch as a primary Scout driver. It's used to index cocktails and ingredients used for filtering and full text search.
Bar Assistant is using Meilisearch as a primary [Scout driver](https://laravel.com/docs/9.x/scout). It's main purpose is to index cocktails and ingredients and power filtering and searching on the frontend. Checkout [this guide here](https://docs.meilisearch.com/learn/cookbooks/docker.html) on how to setup Meilisearch docker instance.

### Setup
## Manual setup

After cloning the repository, you should do the following:

Expand Down Expand Up @@ -86,32 +105,23 @@ $ php artisan key:generate
$ php artisan storage:link

# To setup the database:
$ php artisan migrate
$ php artisan migrate --force

# To fill the database with data
$ php artisan bar:open
```

Default login information is:
## Usage

Checkout `/docs` route to see endpoints documentation.

Default login information is:
- email: `[email protected]`
- password: `password`

## Docker

[Also checkout how to setup the whole Bar Assistant stack here.](https://github.com/karlomikus/vue-salt-rim#docker-compose)

``` bash
docker run -d \
-e APP_URL=http://localhost:8080 \
-e MEILISEARCH_HOST=http://localhost:7700 \
-e MEILISEARCH_KEY=maskerKey \
kmikus12/bar-assistant-server
```

## Contributing

TODO
TODO, Fork and create a pull request...

## License

Expand Down

0 comments on commit 65b5186

Please sign in to comment.