Skip to content
/ keep Public

a simple elixir-phoenix react todo application

Notifications You must be signed in to change notification settings

mudssrali/keep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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 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 from your browser

Create and run postgres db inside docker container

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

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