Giter Site home page Giter Site logo

profilo's Introduction

Profilo:

Take control of your social feed!

Installation Guide:

  1. Install Elixir: a. Mac use homebrew: https://elixir-lang.org/install.html b. Windows use installer: https://elixir-lang.org/install.html

  2. Install PosgreSQL: a. Mac: https://www.youtube.com/watch?v=5AOkxqFaYEE b. Windows: https://www.youtube.com/watch?v=BLH3s5eTL4Y

  3. Install PosgreSQL client for mac: a. https://eggerapps.at/postico/

Setup Guide

  1. git clone https://github.com/venomnert/Profilo.git
  2. cd Profilo
  3. mix deps.get
  4. mix ecto.create
  5. mix ecto.migrate
  6. yarn install

Startup Guide

After you have completed the above steps without any error, you can now run phoenix server: mix phx.server

Troubleshooting

  1. How to login into psql locally

'psql -U someuser -h 127.0.0.1 database See styuluseater comment

  1. How to resove missing MAKE error:

sudo apt-get install build-essential See kevinwo comment

  1. Posgres Debugging

Error: (DBConnection.ConnectionError) tcp connect (localhost:5432): mac os

Detail:

This error happens usually if you restarted your Mac OS and the Posgres server hasn’t started up.

Solution:

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

Production Guide:

How to reset production db WARNING NO BACKUP IS TAKEN:

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)

profilo's People

Contributors

ceterisp avatar mizanur avatar venomnert avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.