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

https://github.com/mudssrali/keep

a simple elixir-phoenix react todo application
https://github.com/mudssrali/keep

absinthe-graphql docker docker-compose ecto-schemas elixir elixir-phoenix genserver liveview phoenix-framework postgres reactjs tailwindcss todoapp typescript

Last synced: 3 months ago
JSON representation

a simple elixir-phoenix react todo application

Awesome Lists containing this project

README

        

# Keep - Simple Notes

A simple todo app build using `Elixir-Phoenix` with `Postgres` on the backend and ReactJS on frontend

## Running Application with Docker-Compose

If you have `docker` and `docker-compose` installed on your machine, execute following command

> sudo docker-compose up --build

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

## Running Application as Standalone Services

To start your Phoenix server:

* Change directory to `server`
* Install dependencies with `mix deps.get`
* Create and migrate your database with `mix ecto.setup`
* Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server`

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

To start your ReactJS client:

* Change directory to `client`
* Install dependencies with `npm install`
* Start ReactJS client with `npm start`

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

Create and run postgres `db` inside docker container

```bash
docker run -p 5432:5432 -d \
--name keep-app \
-e POSTGRES_DB=keep_dev \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_USER=postgres \
-v /docker/keep-app/db:/var/lib/postgresql/data \
postgres:14.1
```

Get into running docker container

```bash
docker exec -it keep-app psql -U postgres -d keep_dev
```