generated from kookmin-sw/cap-template
-
Notifications
You must be signed in to change notification settings - Fork 4
[Server] Database Setup Guide
Hyeonwoo Kim edited this page May 22, 2022
·
5 revisions
In this section, We explain how to setup your SQL database server
You can define Tables by executing sql file
Be careful as data may be lost if a table with the same name exists
Express (API) server have to know your database server informations
...
MYSQL_SERVER_HOST=
MYSQL_SERVER_PORT=
MYSQL_SERVER_USER=
MYSQL_SERVER_PASSWORD=
MYSQL_SERVER_DATABASE=
So, Remember the database server information and enter the information when building the API server
The API server uses typeorm and is tailored to the MySQL database
However, Other sql databases, which supported by typeorm, can also be used (eg postgreSQL, mariaDB)
If you want to use other SQL database, need to edit data-source file