How to Install OSEM on Windows 10
This tutorial will guide you through the process of installing OSEM on Windows 10.
Requirements
- Windows 10 operating system
- Ruby version 2.6 or higher
- Git
- PostgreSQL
Steps
- Install Git from the official website: https://git-scm.com/download/win
- Install Ruby by downloading the latest version from https://rubyinstaller.org/downloads/
- During the Ruby installation, make sure to select the option to add Ruby executables to your PATH.
- Install PostgreSQL from the official website: https://www.postgresql.org/download/windows/
- During installation, make sure to choose the option to install PostgreSQL as a service and remember the password you set for the postgres user.
- Open Command Prompt or PowerShell.
- Clone the OSEM repository from GitHub with the following command:
git clone https://github.com/openSUSE/osem.git
- Navigate to the cloned directory:
cd osem
- Install the required dependencies using Bundler:
bundle install
- Create a
.envfile by copying the.env.examplefile:
cp .env.example .env
- Edit the
.envfile and update the database credentials:
DATABASE_USER=postgres
DATABASE_PASSWORD=<password>
DATABASE_HOST=localhost
DATABASE_PORT=5432```
12. Create the database tables by running the following command:
```bundle exec rake db:create db:migrate```
13. Start the server:
```bundle exec rails server```
14. Open a web browser and go to http://localhost:3000 to access OSEM.
Congratulations! You have successfully installed OSEM on Windows 10.