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
- Host: GitHub
- URL: https://github.com/mudssrali/keep
- Owner: mudssrali
- Created: 2021-12-04T09:27:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-16T16:47:10.000Z (over 3 years ago)
- Last Synced: 2025-01-09T06:33:55.837Z (4 months ago)
- Topics: absinthe-graphql, docker, docker-compose, ecto-schemas, elixir, elixir-phoenix, genserver, liveview, phoenix-framework, postgres, reactjs, tailwindcss, todoapp, typescript
- Language: Elixir
- Homepage:
- Size: 556 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```