alex.rvz

alex.rvz

Hello to everyone!
I’m relatively new to web programming and Elixir/Phoenix.

I’m trying to learn wen development using real world examples like this:
https://github.com/cerclecrm/cercle?source=post_page---------------------------

I think I have really trivial problem, but unfortunately I don’t know how to solve it.

In a description how to run an application locally I have this kind of instructions:

-You need to setup a postgresql DB version 9.5
-Rename the file dev.secret_example.exs to dev.secret.exs
-Fill out the parameters of dev.secret.exs
-mix ecto.create (Create the DB)
-mix ecto.migrate (Run the migration)
-mix phoenix.server (You’re good to go!)

The problem is after I’ve renamed dev.secret_example.exs to dev.secret.exs
I don’t know how to “Fill out the parameters of dev.secret.exs”…

I know how to change user name and password for PostgreSQL ONLY…

That’s the code that I have:
use Mix.Config

In this file, we keep production configuration that

you likely want to automate and keep it away from

your version control system.

Configure your database

config :cercleApi, CercleApi.Repo,
adapter: Ecto.Adapters.Postgres,
username: “postgres”,
password: “postgres”,
database: “cercle”,
hostname: “localhost???”,
pool_size: 10

config :arc,
bucket: “YOUR_AWS_BUCKET???”,
virtual_host: true

config :ex_aws,
access_key_id: “YOUR_KEY_ID???”,
secret_access_key: “YOUR_SECRET_KEY???”,
region: “YOUR_REGION??? Israel???”

config :cercleApi, basic_auth: [
username: “admin???”,
password: “admin???”,
realm: “Admin Area???”
]

config :mailman,
relay: “smtp.postmarkapp.com”,
port: 587,
username: “SMTP_LOGIN???”,
password: “SMTP_PASSWORD???”,
tls: :always

all the ??? is something I don’t know what to do…

I’m asking for help,
Thanks!

Showing Posts 1 to 7

wolfiton

wolfiton

Hi,

Welcome to the forum.
If you are new to web development I suggest, that you should learn first the basics to get a solid foundation.
This foundation will help you to understand all the feature projects you will attempt going further in this field.

So the first thing is to follow the tutorial on phoenix website or better yet read this book Search(I never read the book but heard that it is good, especially because it is written by the creator of elixir and phoenix).

Now back on topic:

In app you are trying out you have the following things:

PostgreSQL is your database, you need to install this and it varies depending on your OS(operating system).

Amazon Web Services(AWS), this a is a very big subject but for you project it seems that they are using it for cloud storage.
You need to create an S3 account iwth aws for this.

Basic login for administrators to the site

At the end there is an email service that will send you emails to a email server or provider so for example: mailgun sendgrid mailchimp etc.
This service will send emails when certain things happen in your application for example singup a user.

They are all advanced things which should be tackled after learning the basics.

Hope this helps.

alex.rvz

alex.rvz OP

Thanks a lot for an answer !!!

Hope I wouldn’t bother you with couple of other questions:
I’ve installed database, but

  1. hostname: “localhost" (should i change it to something like 4000??),
    pool_size: 10 (should i change it to something else??)
  2. I’ll create an AWS account for this.

Thanks, I’ll check the book too!

wolfiton

wolfiton

You are not bothering me.

By default the hostname is localhost for the server which usually also 127.0.0.1

You don’t need to change the pool_size

With AWS it gets trickier.

So let me offer a good path to start:

HTML CSS Phoenix - this should be the basics, not the github project. That comes after you understand each of this pieces, in web dev the only thing you will have to use a lot is patience and a lot of learning.

Don’t jump ahead.

wolfiton

wolfiton

Also get at praprog discount of 35% at any book they have using the code ElixirForum

More info here
https://forum.elixirforum.com/t/pragprog-giveaway-2019/18991

wolfiton

wolfiton

Also if you really want to learn by diving right in then I suggest you start with a smaller project like a todo list or a blog.

Something like this Phoenix Contexts - ElixirCasts

alex.rvz

alex.rvz OP

Thanks!

wolfiton

wolfiton

You are welcome

— All posts loaded —

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
matt-savvy
Anyone here using Honeybadger? My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of Bandit.HTTPError...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews