How to implement a web interface for user registration?

165 views
Skip to first unread message

meie...@gmail.com

unread,
Oct 5, 2013, 6:20:55 AM10/5/13
to anki-syn...@googlegroups.com

Hi

I was able to successfully set up Anki Server on a linux box. I’m now able to synchronize my data stored on anki with anki server.

By default setting up a new user account requires shell access and execution of a number of commands directly on the linux box. I would like to open my anki server to a larger community similar to AnkiWeb. Therefore I’m looking for some sort of web interface, where the user can register on his own and start synchronizing.

How should I go about it?

Kind regards,

Roman

David Snopek

unread,
Oct 9, 2013, 7:16:03 AM10/9/13
to anki-syn...@googlegroups.com
Hi again Roman,

So, I personally like creating a seperate web application that wraps the AnkiServer and then communicates with it using the RESTful API. It's this seperate web application that maintains the idea of user accounts! This pretty much what I was talking about in my last post: https://groups.google.com/forum/#!topic/anki-sync-server/vzMOAnO6Xng

Alternatively, you could actually extend the AnkiServer to return web pages at specific URLs - however, that isn't the approach I'd recommend. Personally, I think it's better keeping the AnkiServer component just handling Anki stuff and then use whatever website building tools you're familiar with to build the web application part.

I hope that makes sense!

Regards,
David.

meie...@gmail.com

unread,
Oct 9, 2013, 7:33:46 AM10/9/13
to anki-syn...@googlegroups.com

Hi David

 Thanks for the reply!

 Ok. I’ll go for your first approach, since your are recommending it.

 Due to your experience with Drupal and AnkiServer, I have decided to start studying Drupal within this week.

 Kind regards,

Roman

knight1411errant

unread,
Jan 8, 2014, 7:28:47 AM1/8/14
to anki-syn...@googlegroups.com, meie...@gmail.com
Hi Roman,

Which OS did you use to set up Anki Server. I am a newbie in this field. I tried the method on GitHub, but due to my lack of experience, it did not work well. Could you help me with more detailed instructions? I really appreciate that!
 
Best regards.
Ken

Roman Meier

unread,
Jan 9, 2014, 5:11:08 AM1/9/14
to knight1411errant, anki-syn...@googlegroups.com

Hi Ken

 

My installation is still experimental but works!

 

I made a few notes for you:

 

·         Upgrade the following libraries to the most recent ones before starting

o   Python

o   OpenSSL

o   Sqlite

·         My version of Anki Server: AnkiServer-2.0.1 (take the most recent one)

·         Upgrades of Anki Server: easy_install --upgrade AnkiServer

·         OS: OpenSuSE 10.1 (you can take the distribution of your choice, I guess)

·         Installation of python modules, e.g. easy_install AnkiServer

o   AnkiServer

o   pysqlite

o   pyaudio

o   supervisor

·         Adjust the following files according to your needs:

o   production.ini (example.ini)

o   supervisor-anki-server.conf

o   supervisord.conf

·         Important commands regarding supervisor

o   supervisorctl start anki-server

o   supervisorctl tail anki-server

 

I can give you more details on demand.

 

Kind regards,

Roman

Reply all
Reply to author
Forward
0 new messages