Yet Another Link Shortener - Minify Link
Visit
.
Report Bug
.
Request Feature
There are tons of link shorteners present on internet today, however, they do not let you create custom link or they limit them till some extent, but yals will soon let you create custom branded links for free, until my FaunaDB doesn't run out of space 😄
Here's why you should you yals-ml:
- Most clear interface ever.
- No ads till now.
- 99.99% uptime.
- Nextjs
- Tailwaind CSS
- FaunaDB
Here is how you can get started with the project locally
- node
- npm or yarn
-
Clone the repo
git clone https://github.com/SatvikG7/YALS-ML
-
Install NPM packages
npm install # or yarn install
-
Create
.env.local
in root directory of project -
Setup FaunaDb
- Upload schema.gql to fauna db.
- Run following commands in fauna shell
CreateCollection({ name: "accounts" }) CreateCollection({ name: "sessions" }) CreateCollection({ name: "users" }) CreateCollection({ name: "verification_tokens" }) CreateIndex({ name: "account_by_provider_and_provider_account_id", source: Collection("accounts"), unique: true, terms: [ { field: ["data", "provider"] }, { field: ["data", "providerAccountId"] }, ], }) CreateIndex({ name: "session_by_session_token", source: Collection("sessions"), unique: true, terms: [{ field: ["data", "sessionToken"] }], }) CreateIndex({ name: "user_by_email", source: Collection("users"), unique: true, terms: [{ field: ["data", "email"] }], }) CreateIndex({ name: "verification_token_by_identifier_and_token", source: Collection("verification_tokens"), unique: true, terms: [{ field: ["data", "identifier"] }, { field: ["data", "token"] }], }) CreateIndex({ name: "LURL_Check", source: Collection("Url"), unique: false, terms: [{ field: ["data", "LURL"] }], values: [{ field: ["data", "SURL"] }], }) CreateIndex({ name: "LURL_Return", source: Collection("Url"), unique: false, terms: [{ field: ["data", "SURL"] }], values: [{ field: ["data", "LURL"] }], })
-
Enter your API keys in
.env.local
NODE_ENV=development
BASE_URL=http://localhost:3000
FAUNADB_SECRET=<FAUNADB_SECRET>
GITHUB_CLIENT_ID=<GITHUB_CLIENT_ID>
GITHUB_CLIENT_SECRET=<GITHUB_CLIENT_SECRET>
NEXTAUTH_URL=http://localhost:3000
SECRET=<SECRET_FOR_NEXT_AUTH>
JWT_SECRET=<SECRET_FOR_JWT>
VERCEL_API_URL=https://api.vercel.com/v6/deployments?teamId=<YOUR_TEAM_ID_OR_USERNAME>
VERCEL_API_TOKEN=<VERCEL_API_TOKEN>
- Start dev server
npm run dev
# or
yarn dev
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- If you have suggestions for adding or removing features, feel free to open an issue to discuss it, or directly create a pull request with necessary changes.
- Create individual PR for each suggestion.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
- Satvik Gaikwad - Satvik Gaikwad