You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 2.0KB

3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # DERO Benchmarks
  2. DERO Benchmarks allows you to list each user's benchmarks. Admins can manually confirm/delete each user's benchmarks from a dedicated page.
  3. The backend part uses the [Paladin Framework](https://github.com/paladin-framework/paladin) and is made in Java.
  4. The frontend part uses [VueJS Framework](https://vuejs.org/) and [Vuetify](https://vuetifyjs.com) and can be found in [dero-benchmark-vue](https://github.com/Slixe/dero-benchmarks/tree/master/dero-benchmark-vue) folder.
  5. # How to start
  6. To start, you will need to build the backend and frontend separately.
  7. ## Backend
  8. First, you must have a java version higher or equal to Java 8.
  9. To compile the backend, do the following command:
  10. ```
  11. gradlew fatJar
  12. ```
  13. The executable jar file will be found in `build/libs/` folder.
  14. To execute it, all you'll have to do is:
  15. ```
  16. java -jar dero-benchmarks.jar
  17. ```
  18. Edit the `config.json` file to put the port on which the server should listen.
  19. ### Create User
  20. Edit the file `admins.json`, an example is created in it.
  21. If you want the application to hash your password, replace `"hashedPassword"` with `"password"`.
  22. Example of `admins.json`:
  23. ```json
  24. [
  25. {
  26. "username": "Slixe",
  27. "password": "password123",
  28. "salt": "salt123"
  29. }
  30. ]
  31. ```
  32. ## Frontend
  33. First you will need to change the value of `Vue.prototype.$api` with your API address (so the IP address/domain name where your backend is running) in the `src/main.js` file.
  34. Then, to build the frontend:
  35. ```
  36. yarn run build
  37. ```
  38. The result will be available in the `dist` folder and all you have to do is move its content to a web server.
  39. # Screenshots
  40. Some screenshots of the current design.
  41. ### Index
  42. ![](https://i.imgur.com/r3T2p0J.png)
  43. ### Submit
  44. ![](https://i.imgur.com/JoLyor7.png)
  45. ### Login
  46. ![](https://i.imgur.com/jmUFFJw.png)
  47. ### Unconfirmed Benchmarks (admin page)
  48. ![](https://i.imgur.com/ZZe0Atv.png)
  49. ## DERO
  50. ```
  51. dERokevAZEZVJ2N7o39VH81BXBqX9ojtncnPTDMyiVbmYiTXQY93AUCLcor9xsWCKWhYy25ja89ikZWXWab9kXRB7LYfUmbQyS
  52. ```