This app demonstrates using graphql with the Elixir framework, Phoenix, as the backend and React as the frontend.
Note: So far this has only been tested on a mac.
Mac(using homebrew):
Install and start:
brew install postgresql
brew services start postgresq
Connect and create user:
psql postgres
CREATE USER dev_user WITH CREATEDB PASSWORD 'password';
The credentials for the dev database are set up here
Make sure you are in the folder budgeting_be before running these commands.
Set up dev environment:
mix deps.get
mix ecto.create
mix ecto.migrate
mix run priv/repo/seeds.exs
Start server:
mix phx.server
Open graphiql: http://localhost:4000/graphiql
I decided to use yarn to build the app, but npm may also work: Install yarn
Make sure you are in the folder budgeting_fe before running these commands.
Install dependencies:
yarn install
Run app:
yarn start
Open app: http://localhost:3000