Skip to content

Commit

Permalink
First work
Browse files Browse the repository at this point in the history
  • Loading branch information
patamimbre committed Feb 28, 2023
0 parents commit 4c13f79
Show file tree
Hide file tree
Showing 24 changed files with 10,472 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env.example
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
11 changes: 11 additions & 0 deletions .eslintrc.js
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"],
},
},
],
};
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
.env
21 changes: 21 additions & 0 deletions LICENSE
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.
27 changes: 27 additions & 0 deletions README.md
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
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
testMatch: ["**/tests/**/*.test.ts"],
transform: {
"\\.ts$": "@swc/jest",
},
};
Loading

0 comments on commit 4c13f79

Please sign in to comment.