Skip to content

Commit 75689d5

Browse files
readme
1 parent 37f635a commit 75689d5

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

movies/vanilla/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Solid Data Module for Movies
2+
3+
### Usage
4+
Set up a typescript project, install [solid-data-module-tasks](https://www.npmjs.com/package/solid-data-module-tasks) from NPM, and create a `.env` file like this:
5+
```env
6+
SOLID_SERVER=https://solidcommunity.net
7+
SOLID_EMAIL=michielbdejong@users.css.pod
8+
SOLID_PASSWORD=...
9+
```
10+
11+
Edit line 19 of `src/example.ts` to point to your movies folder on your pod.
12+
```sh
13+
pnpm install
14+
pnpm build
15+
pnpm start
16+
```
17+
18+
The output will look something like this:
19+
```json
20+
{
21+
created: 2020-07-17T16:40:29.000Z,
22+
modified: 2020-08-06T14:09:18.000Z,
23+
movie: {
24+
published: 2019-05-30T00:00:00.000Z,
25+
description: "All unemployed, Ki-taek's family takes peculiar interest in the wealthy and glamorous Parks for their livelihood until they get entangled in an unexpected incident.",
26+
image: 'https://image.tmdb.org/t/p/w500/7IiTTgloJzvGI1TAYymCfbfl3vT.jpg',
27+
name: 'Parasite',
28+
sameAs: [
29+
'https://www.imdb.com/title/tt6751668',
30+
'https://www.themoviedb.org/movie/496243'
31+
]
32+
}
33+
}
34+
{
35+
created: 2022-05-17T14:50:44.000Z,
36+
startTime: 2022-05-17T14:50:44.000Z,
37+
endTime: 2022-05-17T14:50:44.000Z,
38+
listingId: 'https://michielbdejong.solidcommunity.net/movies/the-green-mile-1999#it'
39+
}
40+
```

0 commit comments

Comments
 (0)