mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Rename to Dawarich
This commit is contained in:
parent
a81b6ef723
commit
f74415217c
13 changed files with 43 additions and 43 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
DATABASE_HOST=solo_customer_template_db
|
DATABASE_HOST=dawarich_db
|
||||||
DATABASE_USERNAME=postgres
|
DATABASE_USERNAME=postgres
|
||||||
DATABASE_PASSWORD=password
|
DATABASE_PASSWORD=password
|
||||||
DATABASE_NAME=solo_customer_template_development
|
DATABASE_NAME=dawarich_development
|
||||||
DATABASE_PORT=5432
|
DATABASE_PORT=5432
|
||||||
REDIS_URL=redis://solo_customer_template_redis:6379/1
|
REDIS_URL=redis://dawarich_redis:6379/1
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
DATABASE_HOST=solo_customer_template_db
|
DATABASE_HOST=dawarich_db
|
||||||
DATABASE_USERNAME=postgres
|
DATABASE_USERNAME=postgres
|
||||||
DATABASE_PASSWORD=password
|
DATABASE_PASSWORD=password
|
||||||
DATABASE_NAME=solo_customer_template_test
|
DATABASE_NAME=dawarich_test
|
||||||
DATABASE_PORT=5432
|
DATABASE_PORT=5432
|
||||||
REDIS_URL=redis://solo_customer_template_redis:6379/1
|
REDIS_URL=redis://dawarich_redis:6379/1
|
||||||
|
|
|
||||||
26
Makefile
26
Makefile
|
|
@ -10,31 +10,31 @@ setup:
|
||||||
make setup_db
|
make setup_db
|
||||||
|
|
||||||
bundle:
|
bundle:
|
||||||
docker-compose run --rm solo_customer_template_app gem install bundler --conservative
|
docker-compose run --rm dawarich_app gem install bundler --conservative
|
||||||
docker-compose run --rm solo_customer_template_app bundle install
|
docker-compose run --rm dawarich_app bundle install
|
||||||
|
|
||||||
setup_frontend:
|
setup_frontend:
|
||||||
npm i daisyui
|
npm i daisyui
|
||||||
|
|
||||||
setup_db:
|
setup_db:
|
||||||
docker-compose run --rm solo_customer_template_app rails db:create db:migrate db:seed
|
docker-compose run --rm dawarich_app rails db:create db:migrate db:seed
|
||||||
|
|
||||||
migrate:
|
migrate:
|
||||||
docker-compose run --rm solo_customer_template_app bin/rails db:migrate
|
docker-compose run --rm dawarich_app bin/rails db:migrate
|
||||||
rollback:
|
rollback:
|
||||||
docker-compose run --rm solo_customer_template_app bin/rails db:rollback
|
docker-compose run --rm dawarich_app bin/rails db:rollback
|
||||||
# Setting up the project
|
# Setting up the project
|
||||||
|
|
||||||
|
|
||||||
# Debugging the project
|
# Debugging the project
|
||||||
bash:
|
bash:
|
||||||
docker-compose run --rm solo_customer_template_app sh
|
docker-compose run --rm dawarich_app sh
|
||||||
|
|
||||||
console:
|
console:
|
||||||
docker-compose run --rm solo_customer_template_app bundle exec rails c
|
docker-compose run --rm dawarich_app bundle exec rails c
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
docker attach solo_customer_template_app
|
docker attach dawarich_app
|
||||||
# Debugging the project
|
# Debugging the project
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -43,7 +43,7 @@ start_sidekiq:
|
||||||
docker-compose up sidekiq
|
docker-compose up sidekiq
|
||||||
|
|
||||||
start:
|
start:
|
||||||
docker-compose up -d solo_customer_template_app
|
docker-compose up -d dawarich_app
|
||||||
make debug
|
make debug
|
||||||
|
|
||||||
overmind:
|
overmind:
|
||||||
|
|
@ -51,17 +51,17 @@ overmind:
|
||||||
# Running the project
|
# Running the project
|
||||||
|
|
||||||
test:
|
test:
|
||||||
RAILS_ENV=test NODE_ENV=test docker-compose run --rm solo_customer_template_test bundle exec rspec
|
RAILS_ENV=test NODE_ENV=test docker-compose run --rm dawarich_test bundle exec rspec
|
||||||
# Running tests
|
# Running tests
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
git push dokku master
|
git push dokku master
|
||||||
|
|
||||||
unlock_deploy:
|
unlock_deploy:
|
||||||
ssh dokku_frey 'dokku apps:unlock solo_customer_template'
|
ssh dokku_frey 'dokku apps:unlock dawarich'
|
||||||
|
|
||||||
tail_production_log:
|
tail_production_log:
|
||||||
ssh dokku_frey 'dokku logs solo_customer_template --tail'
|
ssh dokku_frey 'dokku logs dawarich --tail'
|
||||||
|
|
||||||
production_migrate:
|
production_migrate:
|
||||||
ssh dokku_frey 'dokku run solo_customer_template bundle exec rails db:migrate'
|
ssh dokku_frey 'dokku run dawarich bundle exec rails db:migrate'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# SoloCustomerTemplate
|
# Dawarich
|
||||||
|
|
||||||
This is a Rails 7.0.2.3 app template with test suite, user auth and development docker env.
|
This is a Rails 7.0.2.3 app template with test suite, user auth and development docker env.
|
||||||
|
|
||||||
|
|
@ -10,7 +10,7 @@ Run
|
||||||
ruby rename_app.rb old_app_name new_app_name
|
ruby rename_app.rb old_app_name new_app_name
|
||||||
```
|
```
|
||||||
|
|
||||||
Notice, the name must be in snake_case. Default app name is `solo_customer_template`.
|
Notice, the name must be in snake_case. Default app name is `dawarich`.
|
||||||
|
|
||||||
|
|
||||||
## How to start the app locally
|
## How to start the app locally
|
||||||
|
|
@ -40,7 +40,7 @@ Dockerized with https://betterprogramming.pub/rails-6-development-with-docker-55
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"predeploy": "dokku ps:stop solo_customer_template"
|
"predeploy": "dokku ps:stop dawarich"
|
||||||
},
|
},
|
||||||
"formation": {
|
"formation": {
|
||||||
"web": {
|
"web": {
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
<div class="hero h-fit bg-base-200 py-20" style="background-image: url(<%= '/images/bg-image.jpg' %>);">
|
<div class="hero h-fit bg-base-200 py-20" style="background-image: url(<%= '/images/bg-image.jpg' %>);">
|
||||||
<div class="hero-content text-center">
|
<div class="hero-content text-center">
|
||||||
<div class="max-w-md">
|
<div class="max-w-md">
|
||||||
<h1 class="text-5xl font-bold">SoloCustomerTemplate</h1>
|
<h1 class="text-5xl font-bold">Dawarich</h1>
|
||||||
<p class="py-6 text-3xl">The only SoloCustomerTemplate you'll ever need.</p>
|
<p class="py-6 text-3xl">The only Dawarich you'll ever need.</p>
|
||||||
|
|
||||||
<%= link_to 'Sign up', new_user_registration_path, class: "rounded-lg py-3 px-5 my-3 bg-blue-600 text-white block font-medium" %>
|
<%= link_to 'Sign up', new_user_registration_path, class: "rounded-lg py-3 px-5 my-3 bg-blue-600 text-white block font-medium" %>
|
||||||
<%= link_to 'Sign in', new_user_session_path, class: "rounded-lg py-3 px-5 bg-neutral text-neutral-content block font-medium" %>
|
<%= link_to 'Sign in', new_user_session_path, class: "rounded-lg py-3 px-5 bg-neutral text-neutral-content block font-medium" %>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html data-theme="dark">
|
<html data-theme="dark">
|
||||||
<head>
|
<head>
|
||||||
<title>SoloCustomerTemplate</title>
|
<title>Dawarich</title>
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
<%= csp_meta_tag %>
|
<%= csp_meta_tag %>
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
<li><%= link_to 'Test url', 'portfolios_url' %></li>
|
<li><%= link_to 'Test url', 'portfolios_url' %></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<%= link_to 'SoloCustomerTemplate', root_path, class: 'btn btn-ghost normal-case text-xl'%>
|
<%= link_to 'Dawarich', root_path, class: 'btn btn-ghost normal-case text-xl'%>
|
||||||
<label class="flex cursor-pointer gap-2">
|
<label class="flex cursor-pointer gap-2">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M1 12h2M21 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4"/></svg>
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M1 12h2M21 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4"/></svg>
|
||||||
<input type="checkbox" value="light" class="toggle theme-controller"/>
|
<input type="checkbox" value="light" class="toggle theme-controller"/>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ require "rails/all"
|
||||||
# you've limited to :test, :development, or :production.
|
# you've limited to :test, :development, or :production.
|
||||||
Bundler.require(*Rails.groups)
|
Bundler.require(*Rails.groups)
|
||||||
|
|
||||||
module SoloCustomerTemplate
|
module Dawarich
|
||||||
class Application < Rails::Application
|
class Application < Rails::Application
|
||||||
# Initialize configuration defaults for originally generated Rails version.
|
# Initialize configuration defaults for originally generated Rails version.
|
||||||
config.load_defaults 7.0
|
config.load_defaults 7.0
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ test:
|
||||||
production:
|
production:
|
||||||
adapter: redis
|
adapter: redis
|
||||||
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
|
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
|
||||||
channel_prefix: solo_customer_template_production
|
channel_prefix: dawarich_production
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,13 @@ default: &default
|
||||||
|
|
||||||
development:
|
development:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: solo_customer_template_development
|
database: dawarich_development
|
||||||
|
|
||||||
test:
|
test:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: solo_customer_template_test
|
database: dawarich_test
|
||||||
|
|
||||||
production:
|
production:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: solo_customer_template_production
|
database: dawarich_production
|
||||||
url: <%= ENV['DATABASE_URL'] %>
|
url: <%= ENV['DATABASE_URL'] %>
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ Rails.application.configure do
|
||||||
|
|
||||||
# Use a real queuing backend for Active Job (and separate queues per environment).
|
# Use a real queuing backend for Active Job (and separate queues per environment).
|
||||||
# config.active_job.queue_adapter = :resque
|
# config.active_job.queue_adapter = :resque
|
||||||
# config.active_job.queue_name_prefix = "solo_customer_template_production"
|
# config.active_job.queue_name_prefix = "dawarich_production"
|
||||||
|
|
||||||
config.action_mailer.perform_caching = false
|
config.action_mailer.perform_caching = false
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ volumes:
|
||||||
gem_cache:
|
gem_cache:
|
||||||
shared_data:
|
shared_data:
|
||||||
services:
|
services:
|
||||||
solo_customer_template_redis:
|
dawarich_redis:
|
||||||
image: redis:4.0-alpine
|
image: redis:4.0-alpine
|
||||||
command: redis-server
|
command: redis-server
|
||||||
networks:
|
networks:
|
||||||
|
|
@ -15,9 +15,9 @@ services:
|
||||||
- test
|
- test
|
||||||
volumes:
|
volumes:
|
||||||
- shared_data:/var/shared/redis
|
- shared_data:/var/shared/redis
|
||||||
solo_customer_template_db:
|
dawarich_db:
|
||||||
image: postgres:14.2-alpine
|
image: postgres:14.2-alpine
|
||||||
container_name: solo_customer_template_db
|
container_name: dawarich_db
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/postgresql/data
|
- db_data:/var/lib/postgresql/data
|
||||||
- shared_data:/var/shared
|
- shared_data:/var/shared
|
||||||
|
|
@ -29,11 +29,11 @@ services:
|
||||||
POSTGRES_PASSWORD: password
|
POSTGRES_PASSWORD: password
|
||||||
ports:
|
ports:
|
||||||
- 5099:5432
|
- 5099:5432
|
||||||
solo_customer_template_app:
|
dawarich_app:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.dev
|
dockerfile: Dockerfile.dev
|
||||||
container_name: solo_customer_template_app
|
container_name: dawarich_app
|
||||||
volumes:
|
volumes:
|
||||||
- .:/var/app
|
- .:/var/app
|
||||||
- shared_data:/var/shared
|
- shared_data:/var/shared
|
||||||
|
|
@ -50,10 +50,10 @@ services:
|
||||||
environment:
|
environment:
|
||||||
RAILS_ENV: development
|
RAILS_ENV: development
|
||||||
depends_on:
|
depends_on:
|
||||||
- solo_customer_template_db
|
- dawarich_db
|
||||||
solo_customer_template_test:
|
dawarich_test:
|
||||||
image: solo_customer_template_solo_customer_template_app
|
image: dawarich_dawarich_app
|
||||||
container_name: solo_customer_template_test
|
container_name: dawarich_test
|
||||||
volumes:
|
volumes:
|
||||||
- .:/var/app
|
- .:/var/app
|
||||||
- shared_data:/var/shared
|
- shared_data:/var/shared
|
||||||
|
|
@ -70,4 +70,4 @@ services:
|
||||||
environment:
|
environment:
|
||||||
RAILS_ENV: test
|
RAILS_ENV: test
|
||||||
depends_on:
|
depends_on:
|
||||||
- solo_customer_template_db
|
- dawarich_db
|
||||||
|
|
|
||||||
2
package-lock.json
generated
2
package-lock.json
generated
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "solo_customer_template",
|
"name": "dawarich",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue