Skip to content

rfornea/library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Backend configuration

To configure the backend, specify the following environment variables in an .env file located in library\pkg\backend\.env:
PORT
PROD_DATABASE_URL
TEST_DATABASE_URL

The database URLs should point to SQL databases.

While in library\pkg\backend, you can run go run main.go to serve up the backend, or go build main.go and then just main.

Frontend configuration

In library\pkg\http\web\app, create an .env file and put this environment variable in it:
VUE_APP_HOST

This should point to the backend you are serving up. The value will most likely be something like: VUE_APP_HOST=http://localhost:3000/api/v1

Remember to replace 3000 with whatever port you specified the backend .env file.

Then run yarn install and yarn serve. The app should be accessible in the browser at localhost:8080 and will initially not have any data in it.

Caveats

ISBN values are validated to be valid ISBN-10 values but they are not assigned in the way a normal library would assign them. They are created randomly, and there's a button to generate a valid ISBN on the screens to create and update a book entry.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published