Skip to content
A URL shortner package
JavaScript Go HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
web
.env.sample
.gitignore
LICENSE
Procfile
README.md
app.json
go.mod
go.sum
heroku.yml
main.go

README.md

repo image

https://atomurl.ga

A fast url shortener without trackers

Project motivation

I wanted to make a simple url choose your own shortener without any trackers or adds, hence this project. Also to keep my learning going in world of Go.

Starting locally

If you would like to host your own or start locally follow these steps :

  • Clone the repository
git clone https://github.com/M-ZubairAhmed/atomURL.git
  • Go to root folder and install go dependencies
go get -v ./...
  • Go to web/ folder and install react dependencies
cd web/
yarn
  • Build the react project
yarn build
  • Back to root folder and go through .env.sample file
cd ../
vi .env.sample
  • Obtain environment values of mongoDB url either for local version or hosted version (eg.MongoDB cloud atlas)
# format of mongo database url
Host://UserName:Password@Address/databaseName
  • Add obtained environmental values in env.sample and rename it.
# after adding values in file env.sample
mv .env.sample .env
  • Replace the values in go run command and start the server
DB_HOST=insert_value_here DB_USER=insert_value_here DB_PASSWORD=insert_value_here DB_URL=insert_value_here DB_NAME=insert_value_here go run main.go

Thanks goes to

You can’t perform that action at this time.