Take control of your social feed!
-
Install Elixir: a. Mac use homebrew: https://elixir-lang.org/install.html b. Windows use installer: https://elixir-lang.org/install.html
-
Install PosgreSQL: a. Mac: https://www.youtube.com/watch?v=5AOkxqFaYEE b. Windows: https://www.youtube.com/watch?v=BLH3s5eTL4Y
-
Install PosgreSQL client for mac: a. https://eggerapps.at/postico/
git clone https://github.com/venomnert/Profilo.git
cd Profilo
mix deps.get
mix ecto.create
mix ecto.migrate
yarn install
After you have completed the above steps without any error, you can now run phoenix server:
mix phx.server
- How to login into psql locally
'psql -U someuser -h 127.0.0.1 database
See styuluseater comment
- How to resove missing
MAKE
error:
sudo apt-get install build-essential
See kevinwo comment
- Posgres Debugging
This error happens usually if you restarted your Mac OS and the Posgres server hasn’t started up.
You must make sure that the postgresql server is running. The easiest way to this on Mac OS X is through brew. Run the command
brew services start postgresql
elixir - mix ecto.create connection refused - Stack Overflow
Run the following commands
gigalixir ps:remote_console
Ecto.Migrator.run(Profilo.Repo, Application.app_dir(:profilo, "priv/repo/migrations"), :down, [all: true])
Ecto.Migrator.run(Profilo.Repo, Application.app_dir(:profilo, "priv/repo/migrations"), :up, [all: true])
seed_script = Path.join(["#{:code.priv_dir(:profilo)}", "repo", "seeds.exs"])
Code.eval_file(seed_script)