go

command module
v0.1.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2022 License: MIT Imports: 10 Imported by: 0

README

mariomenjr/go

A redirect server based on Go and MongoDB.

Config

You'll need to provide the following variables in a .env file.

PORT=1993

MONGO_USER=
MONGO_PASS=
MONGO_DB=
MONGO_HOST=
MONGO_PORT=

Database

Once you are connected to a mongodb database, you can start creating a redirect endpoint using the following format:

{
    "_id" : ObjectId("62681fff2e827293a32b0e0c"),
    "created_at" : ISODate("2022-04-26T16:06:05.262Z"),
    "updated_at" : ISODate("2022-04-26T16:06:08.099Z"),
    "title" : "Mario's Github",
    "url" : "https://github.com/mariomenjr",
    "id" : "github"
}

Run

In development:

sh ./setup.sh development

In production:

sh ./setup.sh production

Example

go.mariomenjr.com/github

License

The source code of this project is under MIT License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL