URL shorter app. Short your links and urls and make easy to share with the people. The system uses a client-server architecture based on microservice. The frontend is composed by an angular web application. The backend follows the microservice architecture, containing at this moment 1 service (service shortener).
The monorepository strategy is used and it is structured as follows:
Folder | Content |
---|---|
/backend | backend code, based on a microservice architecture |
/frontend | frontend code for the web app |
GitHub Actions | Workflows code for CI |
To get a local copy up and running follow these simple example steps.
- Install go and node
- Clone the repo
git clone https://github.com/joseramonmartinez/urlclip.git
- Install client packages
cd frontend npm install
- Install backend packages
cd backend/service-shortener go get -d ./...
- In backend/service-shortener, create a
.env
with the databaseURL_DB=<persistance-database-technology> MONGO_URL=<mongo-conexion-chain> MONGO_DB=<mongo-database-name> MONGO_TIMEOUT=<timeout-time> PORT=<port>
- Run client on localhost:4200
cd frontend npm start
- Run server on localhost:8000
cd backend/service-shortener go run main.go
- Service shortener
docker build -t service-shortener docker run -p 8080:8000 service-shortener
- José Ramón Martínez Riveiro - Linkedin
This project is under Creative Commons (BY-NC-ND) license.