Skip to content

first commit#22

Open
SpringerJordan wants to merge 2 commits intocode-differently:mainfrom
SpringerJordan:main
Open

first commit#22
SpringerJordan wants to merge 2 commits intocode-differently:mainfrom
SpringerJordan:main

Conversation

@SpringerJordan
Copy link
Copy Markdown

No description provided.

if (err) {
throw err;
}
});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You want to stick this logic in a javascript file. Your sql to create your database and tables should go here

})
console.log(hello);

let pokedex = document.getElementById("pokedex");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is generating an express app running on node. The document object is only available in the browser. The DOM and fetch logic should all be in web/index.html. The code in that file will be used by web/index.html in the browser

<ol id="pokedex"> </ol>

</div>
<script src="../rest/app.js"></script>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once you move the code above to web/index.js you can update this import statement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants