Giter Site home page Giter Site logo

milapacek / mapseries Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moravianlibrary/mapseries

0.0 0.0 0.0 66.06 MB

MapSeries

License: Apache License 2.0

Dockerfile 0.09% Shell 0.61% JavaScript 30.73% CSS 15.58% HTML 11.81% CoffeeScript 12.48% Makefile 0.43% Java 23.52% Less 4.76%

mapseries's Introduction

Mapseries

As name hints mapseries is a web application for presenting, editing and cataloging map's series. The application consists of three separate applications. Presentation application listening on root /, cataloging application listening on /catalog and application for editing and creating new series listening on /edit.

How to deploy

Recommended way for deploying the application is to use Docker Compose. In the root's directory of the repository you can find file docker-compose.yml which can be used as a template for your deployment. Everything what must be done is just filling in few environment variables described below. If you are done, just run following command in the root's directory.

docker-compose up

Configuring the deployment

As it was indicated in previous paragraph, if you want to deploy the application, you have to configure few environment variables. In this chapter I will explain meaning of this variables and what values you should put in.

Name Description
GITHUB_CLIENT_ID
GITHUB_CLIENT_SECRET
These variables are needed for github authentication. For more information what they mean and mainly how to get them, see Github's official documentation.
POSTGRES_PASSWORD This variable is required by postgres image and it defines password for the postgres user.

It is also important to configure volume for your postgres image, so the database data are preserved between restart of the postgres image.

Preparation of the database

If you run the mapseries application using the docker-compose for the first time, it won't work yet because the postgres database must be prepared. You have to create database and user which are expected by the application. To prepare the database use following commands.

# attach to running postgres container
docker exec -it mapseries_postgres_1 bash
# login into the postgres. As a password use value passed to POSTGRES_PASSWORD env variable
psql -U postgres -W
# Execute following commands
CREATE USER mapseries WITH PASSWORD 'mapseries';
CREATE DATABASE mapseries WITH owner = mapseries;

After that restart the application.

docker-compose restart

Last step you have to do is set up one Github account as admin account for presentation application. Others admins may be added via GUI. Login to postgres database as it was described in previous paragraph. However now use username and password mapseries. Then execute following SQL command.

psql -U mapseries -W
INSERT INTO admindao (name) VALUES ('admin');

mapseries's People

Contributors

dudaerich avatar jirik avatar zabak avatar milapacek 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.