- Notifications
You must be signed in to change notification settings - Fork0
mudssrali/keep
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A simple todo app build usingElixir-Phoenix
withPostgres
on the backend and ReactJS on frontend
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
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 withiex -S mix phx.server
Now you can visitlocalhost: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 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
About
a simple elixir-phoenix react todo application
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published