Giter Site home page Giter Site logo

dataobservatory-eu / datasette Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simonw/datasette

0.0 1.0 0.0 4.92 MB

An open source multi-tool for exploring and publishing data

Home Page: https://datasette.io

Python 86.83% HTML 9.73% CSS 2.09% Dockerfile 0.12% JavaScript 1.11% Shell 0.03% Makefile 0.09%

datasette's Introduction

Datasette API for Green Deal Data Observatory (AWS Ubuntu server installation)

Datasette Package Installation

Upload the /datasette-install directory to the AWS instance Install Datasette from the installer directory: python setup.py install For further info refer to the separate Datasette Readme

Observatory Deployment

Copy the datasette subdirectory located under /aws-observatory to the server root directory (/home/ubuntu) Create a symlink for the directory: sudo ln -s /home/ubuntu/datasette /datasette The symlinked /datasette directory contains the setting files (datasette.service, metadata.json, settings.json) for the Green Deal Observatory API, which will run on port 8000 To enable the service, first set up the DATASETTE_SECRET environment variable in datasette.service (you can use python3 -c 'import secrets; print(secrets.token_hex(32))'), then from the same directory start: sudo bash datasette_service.sh

The python script /datasette/git-append.py will refresh the database from a Github URL You can set up the repo URL under the # Directory settings section in git-append.py You will need to generate a Github Deploy Key based on your SSH public key. Then copy your SSH private key to /datasette/contributor (the file in this repo is empty for security reasons). Don't forget to set the chmod to 600

To run the script every hour you can set it up in crontab: "crontab -e", adding the following line: 0 * * * * python3.8 /datasette/git-append.py

Nginx and SSL: You can install Nginx with Certbot/Let's Encrypt on the Ubuntu instance The recommended Nginx configuration settings are located under the nginx subfolder of /datasette

datasette's People

Contributors

abdusco avatar abeyerpath avatar adipasquale avatar bobwhitelock avatar bollwyvl avatar bvitos avatar chris48s avatar dependabot-preview[bot] avatar dependabot[bot] avatar glasnt avatar hellerve avatar ignoredambience avatar jaap3 avatar jacobian avatar jaywgraves avatar jefftriplett avatar jthodge avatar natbat avatar psychemedia avatar qwo avatar r4vi avatar raynae avatar rgieseke avatar rixx avatar rprimet avatar russss avatar ryanpitts avatar simonw avatar tmcw avatar tomdyson avatar

Watchers

 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.