Skip to content

update instructions to setup slashdb #3

@mdobrzanski

Description

@mdobrzanski

Steps 1, 2, and 3 in documentation https://github.com/SlashDB/taskapp-demo/blob/main/README.md#how-to-run-app-in-local-environment-with-connection-to-a-local-slashdb-server are OK

In the part when starting docker in https://github.com/SlashDB/taskapp-demo/blob/main/README.md#set-up-local-server-of-slashdb-with-docker I would suggest more console instructions rather than window screen shots.

. go to taskapp-demo folder

cd taskapp-demo

. download and unzip default slashdb configuration files

wget -c https://downloads.slashdb.com/latest/default-slashdb-configs.zip
unzip default-slashdb-configs.zip 

. copy the sqlite database and configuration files databases.cfg, users.cfg and querydefs.cfg from data folder to slashdb folder

cp ./data/* ./slashdb

. verify list of files

mike@pure-power:~/projects/taskapp-demo$ ls slashdb
auth.cfg  databases.cfg  license.key  nginx.conf  querydefs.cfg  slashdb.ini  taskdatadb.sqlite  users.cfg

. start slashdb container with attached configuration volume

docker run -d -p 8000:80 -v $(pwd)/slashdb:/etc/slashdb slashdb/slashdb

. in your browser go to http://localhost:8000 to finish the initialization process. For more details see the video and SlashDB Documentation

. Visit and browse task app data at http://localhost:8000/db/taskdatadb.html. You can find more on how to use SlashDB API at https://docs.slashdb.com/user-guide/using-slashdb.html
5  visit and browse task app data

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions