Skip to content

suricats/startups-referential

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

startups-referential

## Usage

Local database

Launch a mysql container : sudo docker run -d -p 3306:3306 -e MYSQL_PASS="password" -e MYSQL_USER="admin" tutum/mysql Test connection : mysql -uadmin -ppassword -h127.0.0.1 -P3306

Go to the scripts location (sql) and then run for script in $(ls *.sql); do mysql -uadmin -ppassword -h127.0.0.1 -P3306 startupdb < $script ; done to create data structure for script in $(ls testing/*.sql); do mysql -uadmin -ppassword -h127.0.0.1 -P3306 startupdb < $script ; done to populate test data

Launch server : ./startups-referential-api -config sample.toml where toml is a configuration file like this

[database]
host = "127.0.0.1"
port = 3306
user = "admin"
password = "password"
database = "startupdb"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages