Simple fullstack Rails email newsletter app
Be sure if you have Ruby version 3.1.2
.
Or you can install it with RVM by the following this commands.
rvm install 3.1.2
Also be sure if you have Rails version 7.0.4
or higher.
If you do not have it you need to install it with:
gem install rails
If you already have ruby and rails next you need to run command:
cp .env.example .env
Next you need to configure .env
file with your SQL credentials and then you need to run this commands:
bundle install
rails db:create
rails db:migrate
And then you can start your application with available scripts.
Runs the Rails app in the development mode.
Open http://localhost:3000 to view it in the browser.
Runs the Rails app in the terminal mode.
You can see it in your terminal.
Displaying all Rails app routes in the terminal.
You can add/delete routes in config/routes.rb
.
Installing all gems in Gemfile
to your Rails app.
Adding gem in Gemfile
and install it.
Runs Rubocop linter to display problems in code and auto-fix it with -A
flag.
Rubocop configuration file: .rubocop.yml
.
Creating database with credentials in config/database.yml
.
Runs all migrations in db/migrations
(migrations will configure database schema).
Adding start mock data into database.
Deleting databases from PostgreSQL role.