Installing Noosfero on Windows 10
In this tutorial, we will guide you through the steps to install Noosfero, the open-source web platform, on Windows 10. Noosfero is a server-side application that requires a web server and a database server to run.
Prerequisites
Before we begin, ensure that the following software is installed on your Windows 10 machine:
- Git
- Ruby
- Ruby Development Kit (DevKit)
- PostgreSQL
Note: This tutorial assumes that you have administrative privileges to perform installations and configure the web server.
Step 1: Clone the Noosfero Repository
- Open a command prompt or Git Bash terminal.
- Navigate to the directory in which you want to install Noosfero.
- Run the following command to clone the latest version of the Noosfero repository:
git clone https://gitlab.com/noosfero/noosfero.git
Step 2: Install Required Gems
- Open the command prompt or Git Bash terminal.
- Navigate to the Noosfero directory using the following command:
cd noosfero/
- Run the following command to install the required gems:
gem install bundler
bundle install
Step 3: Install Node.js and Yarn
- Download Node.js from the following link: https://nodejs.org/en/download/
- Install Node.js by following the setup wizard.
- Download Yarn from the following link: https://classic.yarnpkg.com/en/docs/install#windows-stable
- Install Yarn by following the setup wizard.
Step 4: Generate the Configuration File
- Run the following command to generate the configuration file:
cp config/default_files/database.yml.example config/database.yml
- Edit the
config/database.ymlfile to add the credentials for your PostgreSQL database.
Step 5: Create User and Database in PostgreSQL
- Open the PostgreSQL command prompt.
- Run the following commands to create a new user and database:
CREATE USER noosfero WITH PASSWORD 'noosfero';
CREATE DATABASE noosfero_development OWNER noosfero;
GRANT ALL PRIVILEGES ON DATABASE noosfero_development TO noosfero;
- This will create a user
noosferowith passwordnoosferoand grant the user all privileges on thenoosfero_developmentdatabase.
Step 6: Load Sample Data
- Run the following command to load the sample data:
bundle exec rake db:seed
Step 7: Start the Server
- Run the following command to start the server:
rails s
- Open your web browser and navigate to
http://localhost:3000. You should see the Noosfero welcome page.
Congratulations! You have successfully installed Noosfero on your Windows 10 machine.