An open API service indexing awesome lists of open source software.

https://github.com/danielmark0116/elixir-ecom

๐Ÿฌ eCommerce with Elixir ๐Ÿงช
https://github.com/danielmark0116/elixir-ecom

docker docker-compose ecommerce elixir phoenix postgres postgresql

Last synced: about 2 months ago
JSON representation

๐Ÿฌ eCommerce with Elixir ๐Ÿงช

Awesome Lists containing this project

README

          

# Ecom

To start your Phoenix server:

```bash
chmod 777 ./entrypoint.sh
chmod 777 ./entrypoint-prod.sh
chmod 777 ./dev.sh

./dev.sh
```

To start `prod` locally:

```bash
docker-compose -f docker-compose.yml up [options of your liking]
```

Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.

Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).

## Accessing iex

Run docker-compose and:

```
docker exec -it NAME_OF_RUNNING_PHOENIX_CONTAINER prod/rel/NAME/bin/NAME remote
```

> exchange NAME with the name of your app

## Connecting do DB with postico

Remember to have the ports exposed for `db` service in `docker-compose.yml`. Then inspect docker container and connect to a proper host and port with a correct user name, password and db name

## Learn more

- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix