This is my first posted Ruby on Rails project. I've tried to show how I would develop a blog using this framework.
For deploy this project you should do these steps:
-
Install Ruby (prefer 3.2.2 version) following guide https://www.ruby-lang.org/en/documentation/installation/
-
Install PostgreSQL following guide https://www.postgresql.org/download/
-
Install Node and NPM https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
-
Create new user and database:
$ sudo -u postgres createuser <username>
$ sudo -u postgres createdb <dbname>
-
Setup connection to the DB server in config/database.yml
-
Execute migrations:
rails db:migrate
-
Build project:
npm build
-
Start the Rails server:
rails server
-
Open in your browser http://127.0.0.1:3000/