WBlog is a Ruby on Rails 7.1 blog system designed for mobile-first responsiveness. To run it locally, you must use Linux or macOS.
Prerequisites
Ensure your system meets these minimum version requirements:
- Ruby: >= 3.1.2
- PostgreSQL: >= 9.x
- Nginx: >= 1.4
- Node.js: >= 1.18
Setup Steps
Clone the repository:
git clone git@github.com:windy/wblog.git
cd wblog
Install dependencies:
Install Rails dependencies using Bundler, then install Node dependencies using Yarn:
gem install bundler
bundle install
npm install yarn -g
yarn install
Configure environment:
Copy the example configuration files and update them with your local settings:
cp config/application.yml.example config/application.yml
cp config/database.yml.example config/database.yml
Note: Update application.yml and database.yml with your specific credentials before proceeding.
Initialize the database:
Run the setup script to prepare the database:
bin/setup
Start the server:
The easiest way to start the full development environment (including asset watchers) is:
bin/dev
Alternatively, you can run components in separate terminals:
- Rails server:
bin/rails s - JS compilation (watch mode):
bin/yarn build --watch - CSS compilation (watch mode):
bin/yarn build:css --watch
Access the application at http://localhost:3000. If connection errors occur, verify your database user and password (default is admin/admin).
# Full development startup
bin/dev