Get Started
Let's discover OpenSSO in less than 5 minutes.
Getting Started
OpenSSO is a NodeJS application. Make sure you’ve done already to install the NodeJS server on your server or on your local computer.
A. Requirement
Minimum requirement to install OpenSSO project:
- NodeJS min v.20.19.0
- Database [Optional]
- Redis 3 [Optional]
To make OpenSSO could stable longer,
here is the recommended stacks:
- NodeJS 20 or higher
- Database PostgreSQL
- Redis 7
- The default database is using SQLite, but you can switch to another database like MariaDB, MySQL or PostgreSQL for easy monitoring, maintaining and scaling in the future.
- The default cache engine is using memory, but you can switch to Redis easily from config file. Using Redis is optional but it will become required if your application working on container service, clustered or behind the proxy load balancer.
Since OpenSSO version 2.0.0, OpenSSO will not to support NodeJS v18 or below.
B. Restore Database [Optional, you can skip this part]
This is optional, OpenSSO using SQLite as default and all features works well with it. You need to setup database if you have a plan to run OpenSSO using MariaDB or MySQL database server. You can skip this if SQLite is enough for you.
Install
MariaDBorMySQL. You can search how to install this by using Google search engine.Create a New Database, then execute or import the file
db.mysql.sqllocated inside directorydatabaseinto your database.
See the picture below.

Edit
config.jslike this below
sequelizeOption: {
dialect: 'mariadb', /* one of 'mysql' | 'mariadb' | 'postgres' | 'mssql' */
dbname: 'DATABASE_NAME',
username: 'DATABASE_USER_NAME',
password: 'DATABASE_USER_PASSWORD',
options: {
host: 'DATABASE_HOST_OR_SERVER',
port: 'DATABASE_PORT'
}
// dialect: 'sqlite',
// storage: './database/data.sqlite3'
},
- If you having trouble with MariaDB, try using dialect
mysql. - File
db.mysql.sqlis only works forMariaDBandMySQLonly. - File
db.postgre.sqlis only works forPostgreSQLonly.
Working with MSSQL or Oracle should works too, but we don't create the database structure for it,
so you have to create it by yourself.
But if in some reason you want to play with MSSQL or Oracle,
you have to install this additional package:
- MSSQL >> npm install tedious
- Oracle >> npm install oracledb
- Done
C. Build App and Run it
You have to build the app for the first time.
Go to the directory path then typing
npm installWait until the process complete.
Then you can run the app by typing
node server.jsor by typing
npm startNow, Open the url http://localhost:3000.
- There is no default account, so when you're running this application for the first time, you have to register a new account to get the
adminrole.
Congratulations!
OpenSSO succesfully running in your local computer. If OpenSSO run in your local computer, means it will work too on the live server.
Let's try to learn more deep, you could deploy it later.
What's next?
- Learn how to configure OpenSSO, Please read Configuration.
- Deploy OpenSSO into cPanel, Please read Deploy to cPanel.
- Deploy OpenSSO to Ubuntu, Please read Deploy to Ubuntu.
- Deploy OpenSSO to Ubuntu Full Guides, Please read Deploy to Ubuntu (FULL).
- Let's play around with our APIs.