Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Chore] - Add forum urls to constants js file #12

Closed
jdwilkin4 opened this issue Sep 13, 2022 · 0 comments · Fixed by #25
Closed

[Chore] - Add forum urls to constants js file #12

jdwilkin4 opened this issue Sep 13, 2022 · 0 comments · Fixed by #25
Assignees
Labels

Comments

@jdwilkin4
Copy link
Owner

What work needs to be done?

There are 4 urls we will be working with that represents the data we will be displaying to the user.

Forum topic url
https://forum.freecodecamp.org/t/

Forum category url
https://forum.freecodecamp.org/c/

Forum avatars url
https://sea1.discourse-cdn.com/freecodecamp

Forum API
https://forum-proxy.freecodecamp.rocks/latest

Inside the constants.js file, create four const variables for the urls listed above. Make sure they are in upper case snake case. Make sure all four variables are named exports.

For example,

export const VARIABLE_NAME1 = url goes here
export const VARIABLE_NAME2 = url goes here
export const VARIABLE_NAME3 = url goes here

Then in the index.js file, import all of those variables.

Here is a helpful resources for imports/exports
https://bobbyhadz.com/blog/javascript-export-function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants