db-lab1/README.md

761 B

bserv

A Boost Based C++ HTTP JSON Server.

Dependencies

  • VS2019
  • CMake
  • PostgreSQL

    The database may not be installed locally. You should be able to connect to it.

  • Other Dependencies

    Refer to readme for setting up other dependencies.

Quick Start

Use VS2019 to open WebApp/WebApp.sln, which is a sample project. config-example.json is a sample config file for WebApp's startup parameters. It should be renamed to config.json before you Run the project.

Database

You can import the sample database:

  • Create the database in psql:

    create database bserv;
    
  • Create the table in the shell using a sample script:

    psql bserv < db.sql