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

Add docs for hosting a static content #208

Merged
merged 3 commits into from
Jun 17, 2024

Conversation

AbegaM
Copy link
Collaborator

@AbegaM AbegaM commented Jun 17, 2024

Fixes #207

Modifications

  1. Add a documentation to show how users can host a static content using Soul

Minor re-wording.
IanMayo
IanMayo previously approved these changes Jun 17, 2024
Copy link
Owner

@thevahidal thevahidal left a comment

Choose a reason for hiding this comment

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

Thanks @AbegaM. I added some change requests.


In this guide, we will demonstrate how to host a static `React Admin` application.

1. Create an `_extensions` folder within the `Soul` directory and add a file named `api.js`:
Copy link
Owner

Choose a reason for hiding this comment

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

The part within the Soul directory needs to be removed as it's only applicable for those who build soul from source code.


5. Run your Soul application:
```sh
npm run dev
Copy link
Owner

Choose a reason for hiding this comment

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

Also this part is better to be changed to:

soul -d foobar.db --extensions /path/to/_extensions/

README.md Outdated
@@ -168,6 +168,10 @@ npm run dev # Start the dev server

Make sure to replace the placeholders with the appropriate values for your environment.

## Hosting Static Content Using Soul

You can host static content using Soul by utilizing its extensions feature. This allows you to expose your static application through Soul, enabling users to access your content without hosting multiple applications. please check [this](./docs//self-hosting.md) document
Copy link
Owner

Choose a reason for hiding this comment

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

The link to self-hosting.md is broken, it has two slashes.


**Accessing a React Admin Application via Soul**

![soul RA app](../assets//images//soul-RA-app.png)
Copy link
Owner

Choose a reason for hiding this comment

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

Also here the slashes are doubled.

@AbegaM
Copy link
Collaborator Author

AbegaM commented Jun 17, 2024

Hello @thevahidal, I have pushed some fixes, please review them and let me know if there is any other thing to fix.

@thevahidal thevahidal merged commit ed8d4af into main Jun 17, 2024
2 checks passed
@thevahidal thevahidal deleted the 207_add_docs_for_static_content_hosting branch June 17, 2024 15:02
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.

Add Documentation for Hosting Static Content
3 participants