A redirect server based on Go and MongoDB.
You'll need to provide the following variables in a .env file.
PORT=1993
MONGO_USER=
MONGO_PASS=
MONGO_DB=
MONGO_HOST=
MONGO_PORT=
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"
}
In development
:
sh ./setup.sh development
In production
:
sh ./setup.sh production
The source code of this project is under MIT License.