-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4c13f79
Showing
24 changed files
with
10,472 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TMDB_API_KEY=112233445566aaabbbccc | ||
MONGO_URI=mongodb+srv://user:password@domain/dbname | ||
PORT=9988 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
extends: ["eslint-config-codely/typescript"], | ||
overrides: [ | ||
{ | ||
files: ["*.ts", "*.tsx"], | ||
parserOptions: { | ||
project: ["./tsconfig.json"], | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
|
||
on: push | ||
|
||
jobs: | ||
unit: | ||
runs-on: ubuntu-latest | ||
name: 🚀 Lint and test | ||
timeout-minutes: 5 | ||
steps: | ||
- name: 👍 Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: 📦 Cache node modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: 📥 Install dependencies | ||
run: npm install | ||
|
||
- name: 💅 Lint code style | ||
run: npm run lint | ||
|
||
- name: ✅ Run tests | ||
run: npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 Codely Enseña y Entretiene SL | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Iberica Addon for Stremio (Work in Progress) 🎥🎬 | ||
This is an addon for [Stremio](https://www.stremio.com/) that allows you to search for movies and TV shows on [Mejortorrent](https://mejortorrent.wtf/), a popular torrent website. Please note that this addon is **still a work in progress**, so there may be bugs and missing features. | ||
|
||
## Getting Started 🚀 | ||
To get started with Iberica addon, you'll need to have Node.js and Stremio installed on your computer. | ||
|
||
- Clone [this repository](https://github.com/Stremio/stremio-addon-sdk) to your local machine using git clone: `git clone https://github.com/patamimbre/iberica-addon.git` | ||
- Navigate to the root directory of the project in your terminal. | ||
- Run `npm install` to install all dependencies. | ||
- Copy the `.env.example` file and rename it to `.env`. | ||
- Edit the `.env` file and add the required variables. | ||
- Start the server with `npm run dev`. | ||
|
||
## Running the Development Server 🌡️ | ||
Once you've installed the dependencies and created your `.env` file, you can start the development server by running `npm run dev` in your terminal. This will start a local server at http://localhost:8899. | ||
|
||
See the [Stremio documentation](https://github.com/Stremio/stremio-addon-sdk) for more information on how to add your local addon to Stremio. | ||
|
||
## Feedback 💬 | ||
If you encounter any bugs or have suggestions for new features, please open an issue on the GitHub repository. We appreciate any and all feedback! | ||
|
||
## Remaining Tasks 📝 | ||
- [ ] Display torrent info (size, seeders, leechers, etc.) | ||
- [ ] Properly handle entries without torrent url (from Mejortorrent) | ||
- [ ] Handle errors/exceptions gracefully | ||
- [ ] Tests | ||
- [ ] Publish to Stremio Addon Catalog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
testMatch: ["**/tests/**/*.test.ts"], | ||
transform: { | ||
"\\.ts$": "@swc/jest", | ||
}, | ||
}; |
Oops, something went wrong.