Devmarks will eventually be a Web App to allow developers to organize Bookmarks amongst their team, organizing them with Folders, Organizations, Tags, and Colors. Currently it only does Bookmarks and Users, but implementing the rest will mostly be a repetition of existing patterns.
The following are the requirements specifically for the backend. The frontend may have its own set of requirements.
- PostgresQL Database
- Golang
-
Install Postgresql database onto your host system and configure a database and users for the app. The exact names do not matter as long as it matches the configuration in step 5. Such configuration is out of the scope of this documentation.
-
Clone the repository.
git clone https://github.com/leggettc18/devmarks-api
-
Rename
config.example.yaml
toconfig.yaml
-
Supply a randomly generated Secret Key.
-
Supply the necessary database information according to the example format.
-
Build the project. Feel free to supply a different executable name after the
-o
flag if desired.go build -i main.go -o devmarks
-
Run the migrations to set up database tables.
./devmarks migrate up
-
Run the
serve
command. Optionally provide the--config
flag if the config file is either named differently and/or not in the same folder as the executable../devmarks --config <path to config.yaml> serve OR ./devmarks serve