Skip to content

arvancloud/ArvanCloudS3

Repository files navigation

ArvanCloudS3

Contributing to ArvanCloudS3

This is a short guide on how to contribute things to ArvanCloudS3.

Submitting a new feature or bug fix

If you find a bug that you'd like to fix, or a new feature that you'd like to implement then please submit a pull request via GitHub.

If it is a big feature, then make an issue first so it can be discussed.

To prepare your pull request first press the fork button on ArvanClouds3's GitHub page.

Next open your terminal, change directory to your preferred folder and initialise your local arvanclouds3 project:

git clone https://github.com/arvancloud/arvanclouds3.git
cd arvanclouds3
git remote rename origin upstream
  # if you have SSH keys setup in your GitHub account:
git remote add origin [email protected]:YOURUSER/arvanclouds3.git
  # otherwise:
git remote add origin https://github.com/YOURUSER/arvanclouds3.git

Finally make a branch to add your new feature

git checkout -b my-new-feature

Committing your changes

Follow the guideline for commit messages and then:

git checkout my-new-feature      # To switch to your branch
git status                       # To see the new and changed files
git add FILENAME                 # To select FILENAME for the commit
git status                       # To verify the changes to be committed
git commit                       # To do the commit
git log                          # To verify the commit. Use q to quit the log

When you are done with that push your changes to Github:

git push -u origin my-new-feature

Run The Project

For run the project install dependencies first:

npm install

Then run project on dev mode:

npm start

For run the project on production mode:

npm run react-build             # To build frontend in build folder
electron .

Package The Project

In resource/app directory:

  • backend/store/user-data.json must be exist and empty
  • forget public folder
  • forget src folder
  • node_modules folder just need main dependencies
    • npm install --production

Writing Documentation

If you are adding a new feature then please update the documentation.