Coder Social home page Coder Social logo

avert / -the-complete-elixir-and-phoenix-bootcamp-docker-elixir-phoenix-1.2.5 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 4 KB

Docker image and docker-compose for devepoment of: The Complete Elixir and Phoenix Bootcamp elixir-phoenix-1.2.5 on udemy

Shell 82.72% Dockerfile 17.28%

-the-complete-elixir-and-phoenix-bootcamp-docker-elixir-phoenix-1.2.5's Introduction

Phoenix Framework 1.2.5 With Elixir Developement environment in Docker.

For course The Complete Elixir and Phoenix Bootcamp.

Built for comfortable finish of this slightly outdated tutorial. ))

Thanks author of this course for great job. Hope it helps for other, to finish this course in comfortable way.

Prerequisites:

Install Docker Engine according this official documentation.

Install Docker Compose according this official documentation.

Getting started:

Clone this repository. Than cd inside it.

In two separate terminal windows

Run:

./1_start_docker.sh

This will create all required preparations and start Phoenix and Postgres in two connected services. Also start pgAdmin at http://localhost:15432

you can Log In with these credentials: [email protected] password

then add our Server to see tables:

  1. Go to "Servers" in the left top corner

  2. In the middle of appeared page press "Add New Server"

  3. In first tab in "Name" field: type name of server for example "docker_db" or "db"

  4. Then press "Connection" tab

  5. In "Host name/address" field: type "db" (this default hostname of our db in container)

  6. In "Username" field: type "postgres" (this default username for our db in container)

  7. In "Password" field: type "postgres" (this default username for our db in container)

  8. Press "Save" button below in form.

  9. Thats all. Now you can see our database and its tables by path: Servers->db->Databases->discuss_dev->Schemas->public->Tables-> your_preffered_table (in our course its "topics" for example)

  10. For more information you may use pgAdmin Documentation

Then:

./2_start_dev_shell.sh

This run interactive shell into Phoenix container and give you ability to run mix commands as you do in normal way.

As soon as you see command prompt

something_yours:/app#

you should run at the first time

mix ecto.create

to create required tables in database

then you feel free to run any commands and of cause run

mix phoenix.server

If everything runs correct you then able to see brand new website by opening http://localhost:4000 in your favorite browser. Then of course you can open project from subdirectory ./src with you preferred IDE (VsCode or IntelliJ Idea product or any IDE or editor you suit).

Have nice coding.

-the-complete-elixir-and-phoenix-bootcamp-docker-elixir-phoenix-1.2.5's People

Contributors

avert avatar

Watchers

 avatar

Forkers

chasusa

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.