The real-time information resource about earthquakes, seismic impacts, and hazards.
Built on Vue.js 2.5, Webpack 4, and Twitter Bootstrap 4
Eqalert.ru – the real-time information resource about earthquakes, seismic impacts and hazards
This README is deprecated. Please check ./nuxt2/README.md
.
There is a new application written using Nuxt2
with Server-Side Rendering (SSR)
to make SEO better for Google and Yandex robots
This is a Single Page Application built with VueJS and webpack. Data is received from an API host using axios library.
More about used technologies you can get from the packages.json
file.
# Clone application from GitHub
git clone [email protected]:geophystech/eqalert.ru.git
cd eqalert.ru
# Install dependencies
yarn install
To run application in development mode, just run:
yarn dev
The application will be compiled and run. It will be available at http://localhost:8080
By default the application uses hot-reload mode which means any changes will be picked up and all open pages will be reloaded automatically.
Exception is static markdown pages located in static/markdown
directory.
If you changem them, you should update your browser pages manually (F5
).
The application has a few tests. Not very good coverage yet, but still.
To run tests, just run:
# Unit tests
npm run unit
# E2E tests
npm run e2e
# Or run all tests
npm test
To run application in staging or production areas, it should be compiled first:
NODE_ENV=production yarn build
The compiled application will be stored in the dist/
directory.
You can deploy it to your target (staging, production, etc) using any tools you like.
Example of deploying the application manually to a staging host:
rsync -avzr --delete -e ssh dist/ USERNAME@HOSTNAME:/opt/eqalert-frontend-test
docker run -p 8888:80 --rm --env API_URI=https://api-test.geophystech.ru/api --env AUTH_URI=https://oauth-client-test.geophystech.ru harbor.ju0.ru/geophystech/eqalert-front
Copyright 2017-2019 GEOPHYSTECH LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
There is a stack consumption issue in all versions of LibSass,
that is triggered in the function "Sass::Eval::operator()"
in "eval.cpp". It will lead to a remote denial of service attack.
This issue also affects all versions of other packages that use
the LibSass library, such as node-sass, libsass-python, sassc, jsass.