Quantascan is an analytics website for the quantum resistant ledger blockchain.
This is the front-end of the website.
The backend and frontend are separated and hosted on Heroku on two different dyno's
- The Backend is based on Django and Scrapy.
- Data is stored in a Postgresql database
- Frontend is based on Vue
How to run Quantascan - frontend Locally
- Go to map ""/QRL/quantascan-frontend"
- Open terminal
- run "npm install"
- run "npm run dev"
- Access site in the browser , 127.0.0.1:8080
All api-calls are done to the Live analytics server (quantascan-backend)
If you want that the front-end uses data from a locally hosted Postgresql database (see readme quantascan-backend)
- go to map "/QRL/quantascan-frontend/src"
- Open file "main.js"
- find code (line 97)
else {
//axios.defaults.baseURL = 'http://127.0.0.1:8000'
axios.defaults.baseURL = 'https://analytics.quantascan.io'
axios.defaults.xsrfCookieName = 'csrftoken'
axios.defaults.xsrfHeaderName = "X-CSRFTOKEN"
}
4. change it to:
else {
axios.defaults.baseURL = 'http://127.0.0.1:8000'
//axios.defaults.baseURL = 'https://analytics.quantascan.io'
axios.defaults.xsrfCookieName = 'csrftoken'
axios.defaults.xsrfHeaderName = "X-CSRFTOKEN"
}
- The frontend will now gets it data of the locally running database
Discord Chat @12remember