Cloudkibo / CloudKibo

CloudKibo
0 stars 0 forks source link

(multi backend) create and integrate mongoldb database with marketing website #485

Closed sojharo closed 7 years ago

sojharo commented 7 years ago

As discussed in document, we would create and integrate mongodb database in our marketing website so that customer can register from there.

jekram commented 7 years ago

@sojharo should we use Postgres as it would integrate with marketing website better?

sojharo commented 7 years ago

yes, the more light-weight the better.

sojharo commented 7 years ago

I am picking this today. Kindly, let me know should I go with Postgres? In this case we can go with as much light-weight database as we want.

jekram commented 7 years ago

Yes. Please go ahead

sojharo commented 7 years ago

I have been working to install postgressql database on our droplet. However, I am successful to install it, but I am having some problems to connect to it using its client. It shows that database server is running but when I connect it gives the error that server is not running.

screen shot 2017-02-08 at 4 36 01 pm

However, Mongodb database is working fine on the droplet. I am looking more into this issue as why postgresql is not connecting.

jekram commented 7 years ago

Please ask questions on digital ocean or some other forum. It is a very common install

sojharo commented 7 years ago

I have successfully installed the server. After this, I went on to read some tutorials and documentations to understand how to create database and users with passwords. I also understood how to define roles and permissions.

After this, I found and studied library for nodejs which connects it to postgresql. Here are the links I went through:

http://mherman.org/blog/2015/02/12/postgresql-and-nodejs/#.WJx66RJ96Rs https://github.com/brianc/node-postgres https://www.postgresql.org/docs/9.4/static/tutorial-accessdb.html https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-14-04 https://www.digitalocean.com/community/tutorials/how-to-use-roles-and-manage-grant-permissions-in-postgresql-on-a-vps--2

Inshallah, tomorrow, I would write the code to connect our application to database. Also, I would create the database and tables.

jekram commented 7 years ago

Thanks Sojharo

sojharo commented 7 years ago

I had completed the work on this and integrated the postgresql with our nodejs application.