Skip to content

Commit b510520

Browse files
author
Test
committed
minor readme changes and make the sign up page pretty
1 parent fedc8d6 commit b510520

4 files changed

Lines changed: 43 additions & 27 deletions

File tree

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,15 @@ To get ThinkDB up and running quickly using DockerHub:
8686
2. Run the container while ensuring SQLite database persistence and setting the `SECRET_KEY_BASE` environment variable. Remember to replace `directory_on_your_machine_for_think_db_storage` and `your_secret_key_base_here` with your actual directory path and secret key base:
8787

8888
```sh
89-
# change directory_on_your_machine_for_think_db_storage & your_secret_key_base_here
90-
docker run -d -p 3000:3000 -v directory_on_your_machine_for_think_db_storage:/app/storage -e SECRET_KEY_BASE=your_secret_key_base_here thinkthinkai/think_db:latest
89+
# change directory_on_your_machine_for_think_db_storage
90+
docker run -d -p 3000:3000 -v directory_on_your_machine_for_think_db_storage:/app/storage thinkthinkai/think_db:latest
9191
```
9292

9393
### Security Note
9494

9595
It's outside the scope of this README to walk you through securing your Docker container and any web application you host within it. However, we strongly recommend that:
9696
97-
1. **SECRET_KEY_BASE**: This should be managed securely—preferably through Docker secrets if using Docker Swarm or Kubernetes, or via a trusted secret management solution—to ensure it’s not exposed in plaintext within your environment variables.
98-
2. **TLS/SSL**: Always serve your web application over HTTPS using a valid TLS certificate to encrypt data transmitted over the network.
97+
**TLS/SSL**: Always serve your web application over HTTPS using a valid TLS certificate to encrypt data transmitted over the network.
9998
10099
101100
### Using Rails Outside a Container (The Harder Method)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.20-alpha
1+
1.0.21-alpha
Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,45 @@
1-
<h2>Sign up</h2>
2-
3-
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
4-
<%= render "devise/shared/error_messages", resource: resource %>
5-
6-
<div class="field">
7-
<%= f.label :email %><br />
8-
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
1+
<div class="container-fluid">
2+
<div class="row">
3+
<div class="col">
4+
<h1 class="mb-4">Sign up</h1>
5+
</div>
96
</div>
7+
<div class="row">
8+
<div class="col-sm-12 col-md-7 col-lg-6">
9+
<div class="card">
10+
<div class="card-body">
11+
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
12+
<%= render "devise/shared/error_messages", resource: resource %>
1013

11-
<div class="field">
12-
<%= f.label :password %>
13-
<% if @minimum_password_length %>
14-
<em>(<%= @minimum_password_length %> characters minimum)</em>
15-
<% end %><br />
16-
<%= f.password_field :password, autocomplete: "new-password" %>
17-
</div>
14+
<div class="mb-4">
15+
<%= f.label :email, class: "form-label" %>
16+
<%= f.email_field :email, autofocus: true, autocomplete: "email", class: "form-control" %>
17+
</div>
1818

19-
<div class="field">
20-
<%= f.label :password_confirmation %><br />
21-
<%= f.password_field :password_confirmation, autocomplete: "new-password" %>
22-
</div>
19+
<div class="mb-4">
20+
<%= f.label :password, class: "form-label" %>
21+
<% if @minimum_password_length %>
22+
<em>(<%= @minimum_password_length %> characters minimum)</em>
23+
<% end %>
24+
<%= f.password_field :password, autocomplete: "new-password", class: "form-control" %>
25+
</div>
26+
27+
<div class="mb-4">
28+
<%= f.label :password_confirmation, class: "form-label" %>
29+
<%= f.password_field :password_confirmation, autocomplete: "new-password", class: "form-control" %>
30+
</div>
2331

24-
<div class="actions">
25-
<%= f.submit "Sign up" %>
32+
<%= link_to 'Log In', new_user_session_path, class: 'btn btn-primary' %>
33+
<div class="float-end">
34+
<%= f.submit "Sign up", class: "btn btn-primary" %>
35+
</div>
36+
<% end %>
37+
</div>
38+
</div>
39+
</div>
40+
<div class="col-sm-12 col-md-5 col-lg-6">
41+
</div>
2642
</div>
27-
<% end %>
43+
</div>
2844

2945
<%= render "devise/shared/links" %>

app/views/devise/sessions/new.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<%= form.check_box :remember_me, class: "form-check-input" %>
2222
<%= form.label :remember_me, class: "form-check-label" %>
2323
</div>
24+
<%= link_to 'Sign Up', new_user_registration_path, class: 'btn btn-primary' %>
2425
<div class="float-end">
2526
<%= form.submit "Log in", class: "btn btn-primary" %>
2627
</div>

0 commit comments

Comments
 (0)