Code Monkey home page Code Monkey logo

monica-sandstorm's Introduction

Monica Sandstorm Package

This repository contains files to turn the Monica Personal Relationship Manager into a Sandstorm app.

It is based off the official Docker image and installs and configures nginx and mysqld as outlined by the vagrant-spk lemp stack.

Sandstorm-specific adjustments are applied through .patch-files.

Development Guide

Prerequisites: Local Sandstorm, spk, Docker, buildah

  1. Build the Docker image, mount it and register the mounted path in sandstorm-pkgdef.capnp: sudo ./build
  2. sudo spk dev (need to be root to access the mounted image filesystem)

If you want to make changes to monica, you can clone it into the opt/www/html directory and it will override the installation provided by Docker:

  1. git submodule add https://github.com/monicahq/monica opt/www/html
  2. cd opt/www/html && git checkout $CURRENT_MONICA_VERSION
  3. rm -rf storage && ln -s /var/www/html/storage storage && ln -s /var/www/html/.env .env
  4. git apply-patch

Note that if you change parts of the client-side JavaScript, these have to be manually transferred into the public/js/vendor.js (i.e. using yarn production) in order to be picked up.

When finished, commit your changes to monica and create a new patch file:

git commit
git format-patch HEAD~1 --stdout > ../../../monica-patches/php/my-patch.patch

Overview of build files

monica-sandstorm's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar ocdtrekkie avatar rs22 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

ocdtrekkie fire

monica-sandstorm's Issues

Can't edit data - no error message

I've tried a new install in our sandstorm today. Everything is fine, but i can't do any changes on people or the settings? Everytime when i'm leaving a page, all entries are gone. Out of curiosity i also installed Monica via Yunohost and here everything is working as expected. What can i do, how can i support you with logs or technical details?
Thanks a lot for your work!

Can't add life events

I don't think I had issue with this before, but returning to my Monica grain, I tried adding two life events, and both said they added successfully but then never appeared on the page, nor appeared in the log of actions taken.

First startup takes long

During the first time setup, the users receive no feedback for a long time until Monica has completed its initial setup. I've heard of users, for whom this setup never actually completes.

Pre-initializing the database does not seem to help, I rather suspect the OAuth key generation steps to take up most of the time. App-specific OAuth is not necessary in Sandstorm and thus, this could probably be skipped entirely.

Source ref: https://github.com/monicahq/monica/blob/78d2c65f24e2cb9b9754738c9a434142f8756792/scripts/docker/entrypoint.sh#L54

Getting an error about redirected avatar storage

Looks like this:

[error] 108#108: *399 rewrite or internal redirection cycle while internally redirecting to "/index.php/storage/avatars/6e2dff9d-fc3b-403c-84c8-04c8d86f20f2.jpg"

I don't even think I uploaded any avatars either.

Sharing a grain doesn't work

When I shared a grain with another user, they get a useless login screen instead of a normal sandstorm account

Integrate sharing and user management

Monica has a 'Invite a new user to access your account' feature -- this should be merged with Sandstorm's grain sharing.

I'm unsure whether the initial setup page should be entirely skipped -- it is currently pre-filled with the Sandstorm user info (which users are free to modify) and allows them to agree to Monica's terms of use.

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.