Skip to content

Latest commit

 

History

History
111 lines (102 loc) · 5.89 KB

File metadata and controls

111 lines (102 loc) · 5.89 KB

Database Installation

YouTube Video Tutorial

By dafault, Elish HCM Cloud Community Edition is bundled with MongoDB.
please note that MongoDB is my preferred choice, but Developer may choose any database like MYSQL, MS SQL Server or CouchDB, Google Firebase/Firestore or any REST API
Other database supported on v1.1.8 release are MYSQL, MS SQL Server, PostGreSQL, CouchDB, Google Firebase/FireStore, MongoDB

If you wish to migrate/upgrade your old desktop or client/server software to enterprise desktop/mobile app, please write to info@elishconsulting.com for Enterprise version upgrade.

We will cover MongoDB, CouchDB and MYSQL Server Installation in this document.

MongoDB Installation :-

Download a copy of MongoDB based on your OS.
https://www.mongodb.com/download-center?jmp=nav#community

Windows 32 Bit system, please download it from
(https://www.mongodb.com/download-center?jmp=nav#previous)
Users on Windows machine without Admin rights, can install it through Homebrew or
Execute this command from CMD
msiexec /a mongodb-win32-x64-3.2.5.msi /qb TARGETDIR="C:\MongoDB"

MongoDB (for windows 32bit OS, Developers should install 3.2.20).
However, please keep in mind that 32 bit versions have 2GB data limit.
So it's better to plan ahead and instead upgrade windows to 64 bit.

Let's get started :-

https://docs.mongodb.com/manual/administration/install-community/

Download & install appropriate version (Windows, mac or Linux)
https://docs.mongodb.com/guides/server/install/

#A :- in case, you want to know your computer infor please open a command prompt and type
$ systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
#B :- While Installing MongoDB, Please make sure "Install as Service" option is enabled. otherwise, you will need to manually start mongodb server each time computer re-starts.
#C :- on windows machine, please make sure,
PATH = C:\MongoDB\bin
is setup correctly and points to the directory your mongodb\bin\mongod.exe is located.
#D :- you can manually start MongoDB server by commandPrompt-> mongod
#E :- After your MongoDB server is running (as a self-starting automated
windows/Linux/mac service) or running manually as defniend in #D i.e. mongod
open another command prompt and mongo to open a mongo shell

$ mongo
$ show dbs
$ use elisherp // this is the database we will use in our app
$ show users
// create user to connect to elishERP database
$ db.createUser({
user: "amit",
pwd: "password",
roles: [{ role: "readWrite", db: "elishERP" },
{ role: "dbAdmin", db: "elishERP" }]
})

$ db.users.insertOne(
{ name: "Amit Shukla", email: "amit@elishconsulting.com", password: "amit@elishconsulting.com", roles: ["admin","supervisor"] }
);

$ show users

Deploying MongoDB on cloud

Gloud
MicroSoft Azure
MLab
MongoDB Atlas
Whatever cloud service you use, please note down mongodb url location to access your database.

MYSQL Installation :-

https://dev.mysql.com/downloads/

create database elisherp

CREATE TABLE users (
id int(11) NOT NULL AUTO_INCREMENT,
name varchar(255) DEFAULT NULL,
email varchar(255) DEFAULT NULL,
password varchar(255) DEFAULT NULL,
roles varchar(255) DEFAULT NULL,
createdAt datetime NOT NULL,
updatedAt datetime NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

--
-- Dumping data for table users
--

INSERT INTO users VALUES(1, 'Amit Shukla', 'amit@elishconsulting.com', 'amit@elishconsulting.com', 'admin,supervisor', '2018-07-26
01:33:32', '2018-07-26 01:33:32');


MariaDB Installation :-

https://www.apachefriends.org/index.html
create database elishERP

CouchDB Installation :-

Download a copy of couchdb database.
Download CouchDB

Install Couchdb

When you install couchdb database for Windows, Linux or Mac.
make sure, you "check" the box, where it says, Install as a service.

Configure Couchdb

After installation
open your web browser and go to
http://127.0.0.1:5984/_utils

Sign in and create an admin user
admin , password

Go to CORS tab
for local install, click on allow "all domains" (For single node local installation only)

Go to Verify Installaion, and click on verify, make sure, it comes back with all checked green clicks.

IMPORTANT

Shut down your computer and restart
After computer is restarted,
open your web browser and go to
http://127.0.0.1:5984/_utils
**We want to make sure, couch db starts as a service, that means, no separate double click/software start is required.
couchdb starts automatically when computer starts.

Configure databases

create database elishERP