DeepSpaceHarbor / hexo-bridge

Command center for websites powered by hexo.
GNU General Public License v3.0
32 stars 6 forks source link

No documentation on wow is www/assets being generated #193

Open githubbbie opened 3 hours ago

githubbbie commented 3 hours ago

I would like to help do some basic development, but looks like some part of the app is being generated.

www/assets

How is this being done?

DeepSpaceHarbor commented 3 hours ago

On the develop branch, there is a folder bridge-client. It's a react app and the source code for the web client.

The www folder is the output/build from the project. Before publishing a new version, I just run npm run build and copy the output into the www folder.

DeepSpaceHarbor commented 3 hours ago

Here's how you can play with it:

  1. Setup a hexo project
  2. Add hexo-bridge
  3. Start the hexo server, notice the URL.

Then:

  1. Clone the repo and switch to the development branch,
  2. Go to the bridge-client folder and npm install & npm run dev to start the app.
  3. Change the API URL in bridge-client/.env.development file.

Note: You will probably run into cors issue with this. For development, I use Moesif Origin/CORS Changer to get around the problem.

DeepSpaceHarbor commented 3 hours ago

If you're looking to play with the API:

  1. Go to the node_modules of your hexo folder
  2. find hexo-brige folder
  3. play with the API until you're happy with the result
  4. Copy the changes back to the bridge-admin-api folder in the development branch and create a PR for the project.