Skip to content

wpdirectory/wpdir-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPDirectory Core

The (new) backend for the WPDirectory application. It is a standalone Go app, which exposes a JSON API for use by a headless frontend.

Note: This is early development and it is not functional yet.

Requirements

Development

First copy the .env.example file to .env and customize if you want. This file is used to configure the application.

Building

To build the application, you can use the following command:

go install ./...

This builds all the entry points in the cmd directory and installs them into your $GOPATH/bin directory.

Running

To run the application, you need to have a PostgreSQL database and Redis cache running. You can use Docker Compose to set these up.

docker compose up -d

and to stop the services:

docker compose down

Then you can run the application with:

wpdir-core

Testing

To run the tests, you can use the following command:

go test ./...

Migrations

To create a new migration you can run (change the name):

wpdir-migrate create new_migration_name sql

You can then run the migrations with:

wpdir-migrate up

To rollback the last migration, you can use:

wpdir-migrate down

You can also run wpdir-migrate to see the available commands.

API Documentation

Coming soon...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages