Code Monkey home page Code Monkey logo

meteor-website's Introduction

meteor-website

DIAS meteor database website

Front-end website for viewing meteor images, filtering with searches and labeling the images.

Looks for RMS-style image files from AllSky/RaspberryPi, parses the camera name and event timestamp, and adds the entry to a MySQL database.

Setup

  • First, git clone https://github.com/pesvut/meteor-website.git
  • Install packages: npm install
  • Add MySQL credentials to /credentials/mysql.json in this format:
{
  "host": "",
  "user": "",
  "password": "",  
  "database": "",
  "port": 3306
}
  • create a .env file and add PORT=8080 (or if using systemd add Environment=PORT=8080), but replace 8080 with whatever port you would like to host on
  • (optional) add .env variable SERVE_IMAGES=1 if using the built in images server (it is reccomended to use the standalone one unless testing)
  • edit the src/config.json and change below to match server configuration:
  "imageDomain": "https://meteor-data.ap.dias.ie/",
  "imagePath": "/meteors-data/",
  • build the server using npm run build
  • (optional) change root homepage path from /meteors to something else: change in /package.json "homepage": "/meteors" and /src/config.json "homapage": "/meteors"
  • run the process with either node server.js (or create a systemd process with /usr/bin/node etc...)

Updating

  • run the following command to update:
git pull && \
npm install && \
npm audit fix && \
npm run build
  • start the server again node server.js

Configuring a systemd service

Create a system file in /lib/systemd/system/, change /path/to/meteor-website/ to wherever the directory is located, and optionally uncomment #User=pi to change to whatever you user you want it to be run by.

[Unit]
Description=server.js - runs the dias meteor images website
Documentation=https://github.com/pesvut/meteor-website
After=network.target

[Service]
Environment=NODE_PORT=8080
Type=simple
#User=pi
ExecStart=/usr/bin/node /path/to/meteor-website/server.js
Restart=on-failure

[Install]
WantedBy=multi-user.target

meteor-website's People

Contributors

dependabot[bot] avatar jmackey-astro avatar nickypro avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.