Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit 9384c93

Browse files
authored
Merge pull request #15 from elRatto21/9-core-functionality
9 core functionality
2 parents a913f0f + c309a7e commit 9384c93

File tree

89 files changed

+1872
-296
lines changed

Some content is hidden

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

89 files changed

+1872
-296
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@
3333

3434
# Ignore master key for decrypting credentials and more.
3535
/config/master.key
36+
37+
/coverage/
38+
github-link.txt

Gemfile

+6-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,9 @@ group :test do
5656
gem "selenium-webdriver"
5757
end
5858

59-
gem 'bcrypt', '~> 3.1.7'
59+
gem 'bcrypt', '~> 3.1.7'
60+
61+
gem 'paper_trail', '~> 14.0'
62+
gem "pundit", "~> 2.4"
63+
64+
gem 'simplecov', require: false, group: :test

Gemfile.lock

+17
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ GEM
9999
debug (1.9.2)
100100
irb (~> 1.10)
101101
reline (>= 0.3.8)
102+
docile (1.4.1)
102103
drb (2.2.1)
103104
erubi (1.13.0)
104105
globalid (1.2.1)
@@ -154,6 +155,9 @@ GEM
154155
racc (~> 1.4)
155156
nokogiri (1.16.7-x86_64-linux)
156157
racc (~> 1.4)
158+
paper_trail (14.0.0)
159+
activerecord (>= 6.0)
160+
request_store (~> 1.4)
157161
parallel (1.26.3)
158162
parser (3.3.5.0)
159163
ast (~> 2.4.1)
@@ -163,6 +167,8 @@ GEM
163167
public_suffix (6.0.1)
164168
puma (6.4.3)
165169
nio4r (~> 2.0)
170+
pundit (2.4.0)
171+
activesupport (>= 3.0.0)
166172
racc (1.8.1)
167173
rack (3.1.7)
168174
rack-session (2.0.0)
@@ -208,6 +214,8 @@ GEM
208214
regexp_parser (2.9.2)
209215
reline (0.5.10)
210216
io-console (~> 0.5)
217+
request_store (1.7.0)
218+
rack (>= 1.4)
211219
rexml (3.3.7)
212220
rubocop (1.66.1)
213221
json (~> 2.3)
@@ -246,6 +254,12 @@ GEM
246254
rexml (~> 3.2, >= 3.2.5)
247255
rubyzip (>= 1.2.2, < 3.0)
248256
websocket (~> 1.0)
257+
simplecov (0.22.0)
258+
docile (~> 1.1)
259+
simplecov-html (~> 0.11)
260+
simplecov_json_formatter (~> 0.1)
261+
simplecov-html (0.13.1)
262+
simplecov_json_formatter (0.1.4)
249263
sprockets (4.2.1)
250264
concurrent-ruby (~> 1.0)
251265
rack (>= 2.2.4, < 4)
@@ -313,10 +327,13 @@ DEPENDENCIES
313327
debug
314328
importmap-rails
315329
jbuilder
330+
paper_trail (~> 14.0)
316331
puma (>= 5.0)
332+
pundit (~> 2.4)
317333
rails (~> 7.2.1)
318334
rubocop-rails-omakase
319335
selenium-webdriver
336+
simplecov
320337
sprockets-rails
321338
sqlite3 (>= 1.4)
322339
stimulus-rails

README.md

+39-13
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,50 @@
1-
# README
1+
# Motorify
22

3-
This README would normally document whatever steps are necessary to get the
4-
application up and running.
3+
## Prerequisites
54

6-
Things you may want to cover:
5+
Ensure you have the following installed:
76

8-
* Ruby version
7+
- Ruby
8+
- Rails
9+
- SQLite
910

10-
* System dependencies
1111

12-
* Configuration
12+
## Getting Started
1313

14-
* Database creation
14+
### 1. Clone the repository:
1515

16-
* Database initialization
16+
```bash
17+
git clone https://github.com/elRatto21/M223-Motorify.git
18+
cd project
19+
```
1720

18-
* How to run the test suite
21+
### 2. Install dependencies:
1922

20-
* Services (job queues, cache servers, search engines, etc.)
23+
```bash
24+
bundle install
25+
```
2126

22-
* Deployment instructions
27+
### 3. Set up the database:
2328

24-
* ...
29+
```bash
30+
rails db:create
31+
rails db:migrate
32+
```
33+
34+
### 4. Seed the database (initial admin user)
35+
36+
```bash
37+
rails db:seed
38+
```
39+
40+
### 5. Running tests (optional)
41+
42+
```bash
43+
rails test
44+
```
45+
46+
### 6. Start the application
47+
48+
```bash
49+
rails server
50+
```

0 commit comments

Comments
 (0)