Setting up the database

As it is necessary for our system to store information, we need to set up a database for our application to persist data in. As we utilized Postgres as our primary datastore in a previous application we developed, we will utilize it as our primary datastore. We have already covered how to set up Postgres on various systems and as such we will not bother covering that here. Let us go ahead and create our database. Open your Terminal and run the following command:

createdb -h localhost —username=<username> place-reviewer 

Once you run the command, a database named place-reviewer will be created on your system. The username you input in place of the <username> argument will be the username that you will use to connect to the database. Having set up the database for our application, we can go ahead with the implementation of the backend. We will be utilizing Spring Framework in the implementation of the backend.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.172.200