mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-09 18:28:10 -05:00
Rename to Dawarich
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
DATABASE_HOST=solo_customer_template_db
|
||||
DATABASE_HOST=dawarich_db
|
||||
DATABASE_USERNAME=postgres
|
||||
DATABASE_PASSWORD=password
|
||||
DATABASE_NAME=solo_customer_template_development
|
||||
DATABASE_NAME=dawarich_development
|
||||
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_PASSWORD=password
|
||||
DATABASE_NAME=solo_customer_template_test
|
||||
DATABASE_NAME=dawarich_test
|
||||
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
|
||||
|
||||
bundle:
|
||||
docker-compose run --rm solo_customer_template_app gem install bundler --conservative
|
||||
docker-compose run --rm solo_customer_template_app bundle install
|
||||
docker-compose run --rm dawarich_app gem install bundler --conservative
|
||||
docker-compose run --rm dawarich_app bundle install
|
||||
|
||||
setup_frontend:
|
||||
npm i daisyui
|
||||
|
||||
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:
|
||||
docker-compose run --rm solo_customer_template_app bin/rails db:migrate
|
||||
docker-compose run --rm dawarich_app bin/rails db:migrate
|
||||
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
|
||||
|
||||
|
||||
# Debugging the project
|
||||
bash:
|
||||
docker-compose run --rm solo_customer_template_app sh
|
||||
docker-compose run --rm dawarich_app sh
|
||||
|
||||
console:
|
||||
docker-compose run --rm solo_customer_template_app bundle exec rails c
|
||||
docker-compose run --rm dawarich_app bundle exec rails c
|
||||
|
||||
debug:
|
||||
docker attach solo_customer_template_app
|
||||
docker attach dawarich_app
|
||||
# Debugging the project
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ start_sidekiq:
|
||||
docker-compose up sidekiq
|
||||
|
||||
start:
|
||||
docker-compose up -d solo_customer_template_app
|
||||
docker-compose up -d dawarich_app
|
||||
make debug
|
||||
|
||||
overmind:
|
||||
@@ -51,17 +51,17 @@ overmind:
|
||||
# Running the project
|
||||
|
||||
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
|
||||
|
||||
deploy:
|
||||
git push dokku master
|
||||
|
||||
unlock_deploy:
|
||||
ssh dokku_frey 'dokku apps:unlock solo_customer_template'
|
||||
ssh dokku_frey 'dokku apps:unlock dawarich'
|
||||
|
||||
tail_production_log:
|
||||
ssh dokku_frey 'dokku logs solo_customer_template --tail'
|
||||
ssh dokku_frey 'dokku logs dawarich --tail'
|
||||
|
||||
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.
|
||||
|
||||
@@ -10,7 +10,7 @@ Run
|
||||
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
|
||||
@@ -40,7 +40,7 @@ Dockerized with https://betterprogramming.pub/rails-6-development-with-docker-55
|
||||
```json
|
||||
{
|
||||
"scripts": {
|
||||
"predeploy": "dokku ps:stop solo_customer_template"
|
||||
"predeploy": "dokku ps:stop dawarich"
|
||||
},
|
||||
"formation": {
|
||||
"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-content text-center">
|
||||
<div class="max-w-md">
|
||||
<h1 class="text-5xl font-bold">SoloCustomerTemplate</h1>
|
||||
<p class="py-6 text-3xl">The only SoloCustomerTemplate you'll ever need.</p>
|
||||
<h1 class="text-5xl font-bold">Dawarich</h1>
|
||||
<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 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>
|
||||
<html data-theme="dark">
|
||||
<head>
|
||||
<title>SoloCustomerTemplate</title>
|
||||
<title>Dawarich</title>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<%= csrf_meta_tags %>
|
||||
<%= csp_meta_tag %>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<li><%= link_to 'Test url', 'portfolios_url' %></li>
|
||||
</ul>
|
||||
</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">
|
||||
<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"/>
|
||||
|
||||
@@ -6,7 +6,7 @@ require "rails/all"
|
||||
# you've limited to :test, :development, or :production.
|
||||
Bundler.require(*Rails.groups)
|
||||
|
||||
module SoloCustomerTemplate
|
||||
module Dawarich
|
||||
class Application < Rails::Application
|
||||
# Initialize configuration defaults for originally generated Rails version.
|
||||
config.load_defaults 7.0
|
||||
|
||||
@@ -8,4 +8,4 @@ test:
|
||||
production:
|
||||
adapter: redis
|
||||
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:
|
||||
<<: *default
|
||||
database: solo_customer_template_development
|
||||
database: dawarich_development
|
||||
|
||||
test:
|
||||
<<: *default
|
||||
database: solo_customer_template_test
|
||||
database: dawarich_test
|
||||
|
||||
production:
|
||||
<<: *default
|
||||
database: solo_customer_template_production
|
||||
database: dawarich_production
|
||||
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).
|
||||
# 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
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ volumes:
|
||||
gem_cache:
|
||||
shared_data:
|
||||
services:
|
||||
solo_customer_template_redis:
|
||||
dawarich_redis:
|
||||
image: redis:4.0-alpine
|
||||
command: redis-server
|
||||
networks:
|
||||
@@ -15,9 +15,9 @@ services:
|
||||
- test
|
||||
volumes:
|
||||
- shared_data:/var/shared/redis
|
||||
solo_customer_template_db:
|
||||
dawarich_db:
|
||||
image: postgres:14.2-alpine
|
||||
container_name: solo_customer_template_db
|
||||
container_name: dawarich_db
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
- shared_data:/var/shared
|
||||
@@ -29,11 +29,11 @@ services:
|
||||
POSTGRES_PASSWORD: password
|
||||
ports:
|
||||
- 5099:5432
|
||||
solo_customer_template_app:
|
||||
dawarich_app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.dev
|
||||
container_name: solo_customer_template_app
|
||||
container_name: dawarich_app
|
||||
volumes:
|
||||
- .:/var/app
|
||||
- shared_data:/var/shared
|
||||
@@ -50,10 +50,10 @@ services:
|
||||
environment:
|
||||
RAILS_ENV: development
|
||||
depends_on:
|
||||
- solo_customer_template_db
|
||||
solo_customer_template_test:
|
||||
image: solo_customer_template_solo_customer_template_app
|
||||
container_name: solo_customer_template_test
|
||||
- dawarich_db
|
||||
dawarich_test:
|
||||
image: dawarich_dawarich_app
|
||||
container_name: dawarich_test
|
||||
volumes:
|
||||
- .:/var/app
|
||||
- shared_data:/var/shared
|
||||
@@ -70,4 +70,4 @@ services:
|
||||
environment:
|
||||
RAILS_ENV: test
|
||||
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,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
||||
Reference in New Issue
Block a user