Productivity
Reduced.to is a modern web application that reduces the length of link URL. So it's easier to remember, share and track.
App
ยท
Report Bug
ยท
Request Feature
List of frameworks/libraries used to bootstrap the project.
List of things you need to run the project locally and how to install them.
npm install npm@latest -g
https://docs.docker.com/get-docker/
npm install
.example.env
to .env
and fill it properly (see Configuration)docker run --name reduced_to_db -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=reduced_to_db -p 5432:5432 -d postgres
npx nx migrate-dev prisma --name=init
npx nx serve backend
npx nx serve frontend
The project is structured in the following way:
.
โโโ apps/
โ โโโ backend
โ โโโ frontend
โโโ libs/
โโโ config
โโโ prisma
You can build the docker images by running the following nx command:
npx nx run-many -t docker-build
In case you have docker installed, you can single-click deploy and test your changes by running the following and going to http://localhost:5000/
on your browser.
When you run the command below, don't forget to change the .env file with the correct values.
docker compose -f docker/local/docker-compose.yml -p reduced-to up
You can deploy the app to a Kubernetes cluster by installing the Helm chart.
chart
directory (/docker/k8s/chart)values.yaml
filehelm install reduced-to . --namespace reduced-to --create-namespace
For the minimal configuration you can just rename the .example.env
files to .env
.
Happy Hacking !
If you want to change your plan on developemnt (Assuming you have a local instance of PostgreSQL running on port 5432 and you don't have Paddle configured):
Subscription
table:
id
: 1userId
: (you can find your user id in the User
table)plan
: (FREE / PRO / BUSINESS)status
: activeendDate
: Choose a date in the futurescheduledToBeCancelled
: falseendDate
: empty (NULL)nextBilledAt
: empty (NULL)createdAt
: current dateupdatedAt
: current dateSimply copy and paste a URL into the provided area. Then click shorten URL! Your URL has now been shortened!
Just create a Pull request already ๐
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star โญ!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)This project is licensed under the terms of the MIT License
Project Link: https://github.com/origranot/reduced.to