Skip to content

Commit 9e357c9

Browse files
refactor: updated Bugsbyte references to Ares (#80)
* Changed everything from bugsbyte to Ares * fix: review * feat: add docker compose and .env.dev.sample * fix: .gitignore typo --------- Co-authored-by: AfonsoMartins26 <[email protected]>
1 parent 2d58115 commit 9e357c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+237
-187
lines changed

.env.dev.sample

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
DB_USERNAME=postgres
2+
DB_PASSWORD=postgres
3+
DB_HOST=localhost
4+
DB_PORT=5555
5+
DB_NAME=ares_dev
6+
HOST_URL=http://localhost:4000
7+
ASSET_HOST=http://localhost:4000
8+
UMAMI_SCRIPT_URL=
9+
UMAMI_WEBSITE_ID=

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ erl_crash.dump
2323
/tmp/
2424

2525
# Ignore package tarball (built via "mix hex.build").
26-
bugsbyte-*.tar
26+
ares-*.tar
2727

2828
# Ignore assets that are produced by build tools.
2929
/priv/static/assets/
@@ -35,3 +35,4 @@ bugsbyte-*.tar
3535
npm-debug.log
3636
/assets/node_modules/
3737

38+
.env.dev

assets/css/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@import "tailwindcss" source(none);
55
@source "../css";
66
@source "../js";
7-
@source "../../lib/bugsbyte_web";
7+
@source "../../lib/ares_web";
88

99
/* A Tailwind plugin that makes "hero-#{ICON}" classes available.
1010
The heroicons installation itself is managed by your mix.exs */

assets/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import "phoenix_html"
2222
// Establish Phoenix Socket and LiveView configuration.
2323
import {Socket} from "phoenix"
2424
import {LiveSocket} from "phoenix_live_view"
25-
import {hooks as colocatedHooks} from "phoenix-colocated/bugsbyte"
25+
import {hooks as colocatedHooks} from "phoenix-colocated/ares"
2626
import topbar from "../vendor/topbar"
2727
import MobileNavigationHook from "./mobile_navigation_hook"
2828
import FaqToggleHook from "./faq_toggle_hook"

config/config.exs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
# General application configuration
88
import Config
99

10-
config :bugsbyte,
11-
ecto_repos: [Bugsbyte.Repo],
10+
config :ares,
11+
ecto_repos: [Ares.Repo],
1212
generators: [timestamp_type: :utc_datetime]
1313

1414
# Configures the endpoint
15-
config :bugsbyte, BugsbyteWeb.Endpoint,
15+
config :ares, AresWeb.Endpoint,
1616
url: [host: "localhost"],
1717
adapter: Bandit.PhoenixAdapter,
1818
render_errors: [
19-
formats: [html: BugsbyteWeb.ErrorHTML, json: BugsbyteWeb.ErrorJSON],
19+
formats: [html: AresWeb.ErrorHTML, json: AresWeb.ErrorJSON],
2020
layout: false
2121
],
22-
pubsub_server: Bugsbyte.PubSub,
22+
pubsub_server: Ares.PubSub,
2323
live_view: [signing_salt: "+ixLmJDz"]
2424

2525
# Configures the mailer
@@ -29,12 +29,12 @@ config :bugsbyte, BugsbyteWeb.Endpoint,
2929
#
3030
# For production it's recommended to configure a different adapter
3131
# at the `config/runtime.exs`.
32-
config :bugsbyte, Bugsbyte.Mailer, adapter: Swoosh.Adapters.Local
32+
config :ares, Ares.Mailer, adapter: Swoosh.Adapters.Local
3333

3434
# Configure esbuild (the version is required)
3535
config :esbuild,
3636
version: "0.25.4",
37-
bugsbyte: [
37+
ares: [
3838
args:
3939
~w(js/app.js --bundle --target=es2022 --outdir=../priv/static/assets/js --external:/fonts/* --external:/images/* --alias:@=.),
4040
cd: Path.expand("../assets", __DIR__),
@@ -44,7 +44,7 @@ config :esbuild,
4444
# Configure tailwind (the version is required)
4545
config :tailwind,
4646
version: "4.1.7",
47-
bugsbyte: [
47+
ares: [
4848
args: ~w(
4949
--input=assets/css/app.css
5050
--output=priv/static/assets/css/app.css

config/dev.exs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import Config
22

33
# Configure your database
4-
config :bugsbyte, Bugsbyte.Repo,
4+
config :ares, Ares.Repo,
55
username: "postgres",
66
password: "postgres",
77
hostname: "localhost",
8-
database: "bugsbyte_dev",
8+
database: "ares_dev",
99
stacktrace: true,
1010
show_sensitive_data_on_connection_error: true,
1111
pool_size: 10
@@ -16,7 +16,7 @@ config :bugsbyte, Bugsbyte.Repo,
1616
# The watchers configuration can be used to run external
1717
# watchers to your application. For example, we can use it
1818
# to bundle .js and .css sources.
19-
config :bugsbyte, BugsbyteWeb.Endpoint,
19+
config :ares, AresWeb.Endpoint,
2020
# Binding to loopback ipv4 address prevents access from other machines.
2121
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
2222
http: [ip: {127, 0, 0, 1}, port: String.to_integer(System.get_env("PORT") || "4000")],
@@ -25,8 +25,8 @@ config :bugsbyte, BugsbyteWeb.Endpoint,
2525
debug_errors: true,
2626
secret_key_base: "ejw/PSSoqRhrPqlwFKu8rrZ4FeregRunGVKr7QpVXuXR6aprq09HAV6sB0Chp/xU",
2727
watchers: [
28-
esbuild: {Esbuild, :install_and_run, [:bugsbyte, ~w(--sourcemap=inline --watch)]},
29-
tailwind: {Tailwind, :install_and_run, [:bugsbyte, ~w(--watch)]}
28+
esbuild: {Esbuild, :install_and_run, [:ares, ~w(--sourcemap=inline --watch)]},
29+
tailwind: {Tailwind, :install_and_run, [:ares, ~w(--watch)]}
3030
]
3131

3232
# ## SSL Support
@@ -53,18 +53,18 @@ config :bugsbyte, BugsbyteWeb.Endpoint,
5353
# different ports.
5454

5555
# Watch static and templates for browser reloading.
56-
config :bugsbyte, BugsbyteWeb.Endpoint,
56+
config :ares, AresWeb.Endpoint,
5757
live_reload: [
5858
web_console_logger: true,
5959
patterns: [
6060
~r"priv/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$",
6161
~r"priv/gettext/.*(po)$",
62-
~r"lib/bugsbyte_web/(?:controllers|live|components|router)/?.*\.(ex|heex)$"
62+
~r"lib/ares_web/(?:controllers|live|components|router)/?.*\.(ex|heex)$"
6363
]
6464
]
6565

6666
# Enable dev routes for dashboard and mailbox
67-
config :bugsbyte, dev_routes: true
67+
config :ares, dev_routes: true
6868

6969
# Do not include metadata nor timestamps in development logs
7070
config :logger, :default_formatter, format: "[$level] $message\n"

config/prod.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Config
55
# manifest is generated by the `mix assets.deploy` task,
66
# which you should run after static files are built and
77
# before starting your production server.
8-
config :bugsbyte, BugsbyteWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json"
8+
config :ares, AresWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json"
99

1010
# Configures Swoosh API Client
1111
config :swoosh, api_client: Swoosh.ApiClient.Req

config/runtime.exs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ import Config
1212
# If you use `mix release`, you need to explicitly enable the server
1313
# by passing the PHX_SERVER=true when you start it:
1414
#
15-
# PHX_SERVER=true bin/bugsbyte start
15+
# PHX_SERVER=true bin/ares start
1616
#
1717
# Alternatively, you can use `mix phx.gen.release` to generate a `bin/server`
1818
# script that automatically sets the env var above.
1919
if System.get_env("PHX_SERVER") do
20-
config :bugsbyte, BugsbyteWeb.Endpoint, server: true
20+
config :ares, AresWeb.Endpoint, server: true
2121
end
2222

2323
if config_env() == :prod do
@@ -30,7 +30,7 @@ if config_env() == :prod do
3030

3131
maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: []
3232

33-
config :bugsbyte, Bugsbyte.Repo,
33+
config :ares, Ares.Repo,
3434
# ssl: true,
3535
url: database_url,
3636
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
@@ -53,9 +53,9 @@ if config_env() == :prod do
5353
host = System.get_env("PHX_HOST") || "example.com"
5454
port = String.to_integer(System.get_env("PORT") || "4000")
5555

56-
config :bugsbyte, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
56+
config :ares, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
5757

58-
config :bugsbyte, BugsbyteWeb.Endpoint,
58+
config :ares, AresWeb.Endpoint,
5959
url: [host: host, port: 443, scheme: "https"],
6060
http: [
6161
# Enable IPv6 and bind on all interfaces.
@@ -72,7 +72,7 @@ if config_env() == :prod do
7272
# To get SSL working, you will need to add the `https` key
7373
# to your endpoint configuration:
7474
#
75-
# config :bugsbyte, BugsbyteWeb.Endpoint,
75+
# config :ares, AresWeb.Endpoint,
7676
# https: [
7777
# ...,
7878
# port: 443,
@@ -94,7 +94,7 @@ if config_env() == :prod do
9494
# We also recommend setting `force_ssl` in your config/prod.exs,
9595
# ensuring no data is ever sent via http, always redirecting to https:
9696
#
97-
# config :bugsbyte, BugsbyteWeb.Endpoint,
97+
# config :ares, AresWeb.Endpoint,
9898
# force_ssl: [hsts: true]
9999
#
100100
# Check `Plug.SSL` for all available options in `force_ssl`.
@@ -104,7 +104,7 @@ if config_env() == :prod do
104104
# In production you need to configure the mailer to use a different adapter.
105105
# Here is an example configuration for Mailgun:
106106
#
107-
# config :bugsbyte, Bugsbyte.Mailer,
107+
# config :ares, Ares.Mailer,
108108
# adapter: Swoosh.Adapters.Mailgun,
109109
# api_key: System.get_env("MAILGUN_API_KEY"),
110110
# domain: System.get_env("MAILGUN_DOMAIN")

config/test.exs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ import Config
55
# The MIX_TEST_PARTITION environment variable can be used
66
# to provide built-in test partitioning in CI environment.
77
# Run `mix help test` for more information.
8-
config :bugsbyte, Bugsbyte.Repo,
8+
config :ares, Ares.Repo,
99
username: "postgres",
1010
password: "postgres",
1111
hostname: "localhost",
12-
database: "bugsbyte_test#{System.get_env("MIX_TEST_PARTITION")}",
12+
database: "ares_test#{System.get_env("MIX_TEST_PARTITION")}",
1313
pool: Ecto.Adapters.SQL.Sandbox,
1414
pool_size: System.schedulers_online() * 2
1515

1616
# We don't run a server during test. If one is required,
1717
# you can enable the server option below.
18-
config :bugsbyte, BugsbyteWeb.Endpoint,
18+
config :ares, AresWeb.Endpoint,
1919
http: [ip: {127, 0, 0, 1}, port: 4002],
2020
secret_key_base: "/jjzqZFw7b1SjOtcGkTrqEVAEj1Qcs9AeA0ZZG9PZAqFQs05LcZ133oYDYu+cCiF",
2121
server: false
2222

2323
# In test we don't send emails
24-
config :bugsbyte, Bugsbyte.Mailer, adapter: Swoosh.Adapters.Test
24+
config :ares, Ares.Mailer, adapter: Swoosh.Adapters.Test
2525

2626
# Disable swoosh api client as it is only required for production adapters
2727
config :swoosh, :api_client, false

darwin.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
services:
2+
db:
3+
ports:
4+
- ${DB_PORT:-5555}:5432
5+
web:
6+
ports:
7+
- ${PORT:-4000}:4000

0 commit comments

Comments
 (0)