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

Use of the library #3077

Open
benramsay opened this issue Nov 8, 2022 · 4 comments
Open

Use of the library #3077

benramsay opened this issue Nov 8, 2022 · 4 comments

Comments

@benramsay
Copy link

benramsay commented Nov 8, 2022

I am new to salesforce :(

Is there a way to use this react components directly inside Salesforce (like SLDS: Salesforce Lightning Design System)?

Or we should use this library with Salesforce backend through Rest API?

It would be a great help if you have a link for any example of use of this library with Salesforce backend?

Thx

@welcome
Copy link

welcome bot commented Nov 8, 2022

Thanks for opening your first issue! 👋
If you have found this library helpful, please star it. A maintainer will try to respond within 7 days. If you haven’t heard anything by then, please bump this thread.

@freddysilber
Copy link

freddysilber commented Nov 22, 2022

Hey @benramsay! Heres a demo project I made to help you. This is a React app leveraging a DX org or any org you want as a REST API. Theres a build command so this will work in production Orgs. (Probably a good idea to make these assets a package for prod)

https://github.com/freddysilber/react-sfdx-boilerplate

@benramsay
Copy link
Author

benramsay commented Nov 23, 2022

Hi @freddysilber!
Thank you for the time you took to implement this app. That will help me alot!
I am trying to make it work.
Actually, I am new with Salesforce! Could you please give a little more details on what to do on the salesforce code and server side?
It seems to me that it is necessary to change the code: to add some credentials ( 'user variable' ), or perhaps other modifications. Isn't it?

After the build and the command: "npm run start -- --app my-app"
I had "Authenticating" as a message and that's it :(
And I don't see what I have to do next to make the application work.

@freddysilber
Copy link

@benramsay Have you made a scratch org and connected it to your IDE? I use VSCODE and Salesforce provides some documentation for getting started with DX.

You'll need an active scratch org for this app to work since the app uses the scratch org as a REST api and all requests need to signed with your authentication token :)

If you need more in depth help, feel free to reach out in an email!

https://developer.salesforce.com/docs/atlas.en-us.216.0.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm

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

No branches or pull requests

2 participants