Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

License

NotificationsYou must be signed in to change notification settings

jeanbaptistemora/opensurvey

 
 

Repository files navigation

Install

Assumes you have a basic understanding of how Django,pipenv, &heroku work:

  • pipenv install
  • pipenv shell
  • heroku local:run python manage.py migrate
  • heroku local

Web-server should be up on127.0.0.1:5000

Setup

Copy theenv.sample as.env and fill in the missing bits. Required:

  • An Open Humans project
  • Having aParticipate enabled Open Clinica survey and the corresponding token to add participants etc.

Demo deployment runs onhttps://opensurveytest.herokuapp.com/

Logging in with Open Humans will:

  • Create Open Clinica participant
  • Schedule first survey for them
  • Get participant access survey_token
  • Email this via Open Humans to just registered participant

Design dev

Assumes you have a basic understanding of how node and yarn/npm work.
Node version used: 12.16.1

We usePostCSS to enhance browser compatibility, accessibility and preformances.
Apackage.json and apostcss.config.js config file exist at the document root. Add or remove plugin from there.

In order to edit the styles, you need to:

  • runyarn install ornpm i
  • edit the styles insrc > css > parts
  • runyarn watch ornpm run watch while in developement (watches the changes)
  • runyarn build ornpm run dev for production

The optimized and minified style file is understatic > css

Translations / i18n

#### Activate a new language

To activate a new language edit theLANGUAGES setting insettings.py

LANGUAGES = [  ('en', _('English')),  ('fr', _('French')),  ('de', _('German')),]

You need to do this first before translating because the language name itself needs to be translated.

Add a new language

To add a new language simply add a new directory in /locale with the language code as name, for example:/locale/fr for french.

Then to generate the translation files run:

python manage.py makemessages

It will createdjango.po files inside each /<lang>/LC_MESSAGES directory.

You can edit these files directly with any text editor or specialized software / web application.

Once the translations are complete, to generate the binary files optimized for consumption by Django, run:

python manage.py compilemessages

It will createdjango.mo files inside each /<lang>/LC_MESSAGES directory.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML73.0%
  • Python18.0%
  • CSS7.5%
  • JavaScript1.5%

[8]ページ先頭

©2009-2025 Movatter.jp