Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

a simple elixir-phoenix react todo application

NotificationsYou 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

A simple todo app build usingElixir-Phoenix withPostgres on the backend and ReactJS on frontend

Running Application with Docker-Compose

If you havedocker anddocker-compose installed on your machine, execute following command

sudo docker-compose up --build

Now you can visitlocalhost:3000 from your browser

Running Application as Standalone Services

To start your Phoenix server:

  • Change directory toserver
  • Install dependencies withmix deps.get
  • Create and migrate your database withmix ecto.setup
  • Start Phoenix endpoint withmix phx.server or inside IEx withiex -S mix phx.server

Now you can visitlocalhost:4000 from your browser

To start your ReactJS client:

  • Change directory toclient
  • Install dependencies withnpm install
  • Start ReactJS client withnpm start

Now you can visitlocalhost:3000 from your browser

Create and run postgresdb 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

dockerexec -it keep-app psql -U postgres -d keep_dev

[8]ページ先頭

©2009-2025 Movatter.jp