This is a web app made with Ruby on Rails, I made it for learning purposes only, some of the features are I18n translation, bootstrap frontend, pagination and basic authentication.
The thematic of this app is Wikipedia.
Follow any of these methods and open http://localhost:3000/ to see the WebApp.
Run the command below to quickly deploy this project on your machine, see the docker image for more info.
docker run -d -p 3000:3000 kurovale/kuro-wiki:sqlite
git clone https://github.com/kuro-vale/kuro-wiki.git
- Set environment variables
- DEV_DATABASE_URL="postgres://username:password@host:port/dev-database"
- TEST_DATABASE_URL="postgres://username:password@host:port/test-database"
- PROD_DATABASE_URL="postgres://username:password@host:port/prod-database"
- Run
bundle install && yarn build && yarn build:css
- Migrate and seed database
bin/rails db:migrate && bin/rails db:seed
- Run
bin/rails server
To add new locale follow these steps:
- Add your locale to I18n.available_locales in
config/application.rb
- Generate migration to your locale example:
bin/rails generate migration AddJapaneseToWiki title_jp body_jp
- Run
bn/rails db:migrate
- Create your locales dictionaries in
config/locales
, example devise.jp.yml and jp.yml - Optional, edit
application.html.erb
and add a link to change locale in line 19