Web3 Netflix Helping Each Other

I am unable to understand the path,

MacBook-Pro-4:Netflix-Starter adenvaz$ moralis-admin-cli watch-cloud-folder --moralisApiKey mviuAMPn2Aev3nU --moralisApiSecret N7R7gCOlZcwCmwv --moralisSubdomain qdogsfooe7zj.usemoralis.com --autoSave 1 --moralisCloudfolder /Netflix-Starter/cloudcode.js

Is it the path to cloud code or some other folder?

The path is to the folder/directory where your cloudcode.js file is. So from your example, it is /Netflix-Starter/ without cloudcode.js as mentioned (if Netflix-Starter is inside the working directory when you run this command). Otherwise just specify a full path to the Netflix-Starter folder.

The terminal is already within the Netflix starter folder. So when i run MacBook-Pro-4:Netflix-Starter adenvaz$ moralis-admin-cli watch-cloud-folder --moralisApiKey mviuAMPn2Aev3nU --moralisApiSecret N7R7gCOlZcwCmwv --moralisSubdomain qdogsfooe7zj.usemoralis.com --autoSave 1 --moralisCloudfolder cloudcode.js

I get this
ncc: Version 0.29.2
ncc: Compiling file index.js into CJS
Changes Uploaded Correctly

But nothing works still

Again, you need to specify the directory, not the file that contains the cloud code. Don’t include cloudcode.js in the command.

If you are at Netflix-Starter as your terminal directory (that has the cloudcode.js file inside it), then use this command:

moralis-admin-cli watch-cloud-folder --moralisApiKey mviuAMPn2Aev3nU --moralisApiSecret N7R7gCOlZcwCmwv --moralisSubdomain qdogsfooe7zj.usemoralis.com --autoSave 1 --moralisCloudfolder ./

If that doesn’t work, go up one directory and then use:

moralis-admin-cli watch-cloud-folder --moralisApiKey mviuAMPn2Aev3nU --moralisApiSecret N7R7gCOlZcwCmwv --moralisSubdomain qdogsfooe7zj.usemoralis.com --autoSave 1 --moralisCloudfolder Netflix-Starter

ApiSecret N7R7gCOlZcwCmwv --moralisSubdomain qdogsfooe7zj.usemoralis.com --autoSave 1 --moralisCloudfolder ./
| Listening folder: ./[SyntaxError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’] {
line: 1,
column: 1,
annotated: ‘\n’ +
‘./node_modules/@ant-design/colors/dist/index.esm.js:1\n’ +
“import { inputToRGB, rgbToHex, rgbToHsv } from ‘@ctrl/tinycolor’;\n” +
‘^\n’ +
“ParseError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’”
}
[SyntaxError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’] {
line: 1,
column: 1,
annotated: ‘\n’ +
‘./node_modules/@ant-design/colors/dist/index.esm.js:1\n’ +
“import { inputToRGB, rgbToHex, rgbToHsv } from ‘@ctrl/tinycolor’;\n” +
‘^\n’ +
“ParseError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’”
}
[SyntaxError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’] {
line: 1,

TypeError: Cannot read properties of undefined (reading ‘length’)
at Glob. (/opt/homebrew/lib/node_modules/moralis-admin-cli/commands/watchCloudFolder.js:96:56)
at Glob.f (/opt/homebrew/lib/node_modules/moralis-admin-cli/node_modules/once/once.js:25:25)
at Glob.emit (node:events:513:28)
at Glob.emit (node:domain:489:12)
at Glob._readdirError (/opt/homebrew/lib/node_modules/moralis-admin-cli/node_modules/glob/glob.js:610:14)
at /opt/homebrew/lib/node_modules/moralis-admin-cli/node_modules/glob/glob.js:553:12
at go$readdir$cb (/opt/homebrew/lib/node_modules/moralis-admin-cli/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:1:826734)
at FSReqCallback.oncomplete (node:fs:201:23)
| Listening folder: /

./node_modules/@ant-design/colors/dist/index.esm.js:1\n

Where is this use of ant-design coming from or what is in that cloudcode.js? Read this for what cloud functions/cloud code is for. You can’t import libraries like that.

Start with a simple comment inside cloudcode.js e.g. //uploaded to show that you can upload changes.

Hi, All

I am facing an issue, once i click the ‘sign’ button which prompts from metamask, nothing happens, my account also doesn’t connect and no error pops out too. It simply keeps prompting again and again!
Can anyone help please?

Can you check your browser console and your terminal for any errors. Have you put your correct Moralis server details in MoralisProvider?

My CSS Won’t Load When Deployed? But Works Fine on The Local Host , How Can I Fix That?

Do you have a link to your deployed site? Does it work locally (npm run build / yarn build and then serve the build folder with a local webserver)?

Make sure you’re not using generated class names in your CSS - these class names will change once deployed so they won’t work.

https://cordos.netlify.app/

Still need more info (see previous post). Can you post screenshots of what you mean exactly where CSS doesn’t load when deployed.

Check out https://cordos.netlify.app/ its not loading right

What isn’t loading right? It looks ok but I don’t know what it should look like (compared to running it locally).

Does it work locally (npm run build / yarn build and then serve the build folder with a local webserver)?

Make sure you’re not using generated class names in your CSS - these class names will change once deployed so they won’t work.

yes it does builds but it has no movies and my list on top banner and the player is not playing

RE :Please svg can it change to your own name difference from Netflix. Please help me with svg write up

Hey Alex how are you? I wanted to know how do I change the Netflix logo to my own? Its called a Netflix.js in the code.

The issue im having is converting my own Png logo to a .js code like how it is in the code.
I tried several websites and spent days on trying to figure this out. Its not a hosted logo by a server nor can I retrieve the logo from the file format. Nor have a found a website that will let me turn a png to a .js file. I tried the SVG converter but its an SVG file not a .JS file. so im still stuck with not being able to change the netflx logo to my own. could you list a step by step process on how to do this? Thanks so much

The best way to do this is to use a web-based SVG converter. These tools are designed to take a PNG file and convert it into an SVG, which can then be edited using a text editor. Once you have the SVG file, you can then use a JavaScript library to create a .js file.

Most SVG converters will allow you to adjust the size, colour, and other properties of your logo. You can also use the SVG file to create an HTML page with your logo embedded in it.

I hope this helps you get your logo into a .js file. Best of luck!