You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directmemory.apache.org by Olivier Lamy <ol...@apache.org> on 2012/02/28 20:04:53 UTC

Sample with a webappp to store json from a js app on a dm server

Hello Folks,

I have just added a sample on how to store javascript "objects" on a DM server.

Update your local wc and run mvn tomcat7:run -pl :server-example -am
Then hit: http://localhost:9091/dm

I will improve a bit with expiresIn and delete.
Something else I'd like to add is a maven archetype to generate a war
project with necessary setup.

Cheers !
-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

Re: Sample with a webappp to store json from a js app on a dm server

Posted by Olivier Lamy <ol...@apache.org>.
2012/2/29 Simone Tripodi <si...@apache.org>:
> Salut Olivier,
>
> I should have missed something, but I don't understand why users have
> to develop their own web applications using the server archetype.
> In my fantasy the DM server was something that users download, extract
> and run, see the statistics on a page, minimum admin if any (check the
> entries and so on), query it via the client, nothing more.
> I thought the archetype is useful for building DM clients applications.
You can customize your dm instance :-)
>
> What is the puzzle's piece I missed? :)
Agree I will add a  default dm war
>
> all the best, TIA,
> -Simo
>
> http://people.apache.org/~simonetripodi/
> http://simonetripodi.livejournal.com/
> http://twitter.com/simonetripodi
> http://www.99soft.org/
>
>
>
> On Wed, Feb 29, 2012 at 9:46 AM, Olivier Lamy <ol...@apache.org> wrote:
>> Hello,
>> Archetype done too.
>>
>> To have a try
>>
>> mvn archetype:generate \
>>   -DarchetypeGroupId=org.apache.directmemory.server \
>>   -DarchetypeArtifactId=server-example-archetype \
>>   -DarchetypeVersion=0.6.0-SNAPSHOT \
>>   -DarchetypeRepository=https://repository.apache.org/content/repositories/snapshots/
>>
>> Now you a war project with needed dm dependencies.
>>
>> cd to the created maven project
>> then run: mvn tomcat7:run
>>
>> hit your browser: http://localhost:9091/dm/
>>
>>
>>
>> 2012/2/28 Raffaele P. Guidi <ra...@gmail.com>:
>>> Really, really nice! And a big +1 to the archetype idea
>>> Il giorno 28/feb/2012 20:05, "Olivier Lamy" <ol...@apache.org> ha scritto:
>>>
>>>> Hello Folks,
>>>>
>>>> I have just added a sample on how to store javascript "objects" on a DM
>>>> server.
>>>>
>>>> Update your local wc and run mvn tomcat7:run -pl :server-example -am
>>>> Then hit: http://localhost:9091/dm
>>>>
>>>> I will improve a bit with expiresIn and delete.
>>>> Something else I'd like to add is a maven archetype to generate a war
>>>> project with necessary setup.
>>>>
>>>> Cheers !
>>>> --
>>>> Olivier Lamy
>>>> Talend: http://coders.talend.com
>>>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>>>
>>
>>
>>
>> --
>> Olivier Lamy
>> Talend: http://coders.talend.com
>> http://twitter.com/olamy | http://linkedin.com/in/olamy



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

Re: Sample with a webappp to store json from a js app on a dm server

Posted by Simone Tripodi <si...@apache.org>.
Salut Olivier,

I should have missed something, but I don't understand why users have
to develop their own web applications using the server archetype.
In my fantasy the DM server was something that users download, extract
and run, see the statistics on a page, minimum admin if any (check the
entries and so on), query it via the client, nothing more.
I thought the archetype is useful for building DM clients applications.

What is the puzzle's piece I missed? :)

all the best, TIA,
-Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



On Wed, Feb 29, 2012 at 9:46 AM, Olivier Lamy <ol...@apache.org> wrote:
> Hello,
> Archetype done too.
>
> To have a try
>
> mvn archetype:generate \
>   -DarchetypeGroupId=org.apache.directmemory.server \
>   -DarchetypeArtifactId=server-example-archetype \
>   -DarchetypeVersion=0.6.0-SNAPSHOT \
>   -DarchetypeRepository=https://repository.apache.org/content/repositories/snapshots/
>
> Now you a war project with needed dm dependencies.
>
> cd to the created maven project
> then run: mvn tomcat7:run
>
> hit your browser: http://localhost:9091/dm/
>
>
>
> 2012/2/28 Raffaele P. Guidi <ra...@gmail.com>:
>> Really, really nice! And a big +1 to the archetype idea
>> Il giorno 28/feb/2012 20:05, "Olivier Lamy" <ol...@apache.org> ha scritto:
>>
>>> Hello Folks,
>>>
>>> I have just added a sample on how to store javascript "objects" on a DM
>>> server.
>>>
>>> Update your local wc and run mvn tomcat7:run -pl :server-example -am
>>> Then hit: http://localhost:9091/dm
>>>
>>> I will improve a bit with expiresIn and delete.
>>> Something else I'd like to add is a maven archetype to generate a war
>>> project with necessary setup.
>>>
>>> Cheers !
>>> --
>>> Olivier Lamy
>>> Talend: http://coders.talend.com
>>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>>
>
>
>
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy

Re: Sample with a webappp to store json from a js app on a dm server

Posted by Olivier Lamy <ol...@apache.org>.
Hello,
Archetype done too.

To have a try

mvn archetype:generate \
   -DarchetypeGroupId=org.apache.directmemory.server \
   -DarchetypeArtifactId=server-example-archetype \
   -DarchetypeVersion=0.6.0-SNAPSHOT \
   -DarchetypeRepository=https://repository.apache.org/content/repositories/snapshots/

Now you a war project with needed dm dependencies.

cd to the created maven project
then run: mvn tomcat7:run

hit your browser: http://localhost:9091/dm/



2012/2/28 Raffaele P. Guidi <ra...@gmail.com>:
> Really, really nice! And a big +1 to the archetype idea
> Il giorno 28/feb/2012 20:05, "Olivier Lamy" <ol...@apache.org> ha scritto:
>
>> Hello Folks,
>>
>> I have just added a sample on how to store javascript "objects" on a DM
>> server.
>>
>> Update your local wc and run mvn tomcat7:run -pl :server-example -am
>> Then hit: http://localhost:9091/dm
>>
>> I will improve a bit with expiresIn and delete.
>> Something else I'd like to add is a maven archetype to generate a war
>> project with necessary setup.
>>
>> Cheers !
>> --
>> Olivier Lamy
>> Talend: http://coders.talend.com
>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

Re: Sample with a webappp to store json from a js app on a dm server

Posted by "Raffaele P. Guidi" <ra...@gmail.com>.
Really, really nice! And a big +1 to the archetype idea
Il giorno 28/feb/2012 20:05, "Olivier Lamy" <ol...@apache.org> ha scritto:

> Hello Folks,
>
> I have just added a sample on how to store javascript "objects" on a DM
> server.
>
> Update your local wc and run mvn tomcat7:run -pl :server-example -am
> Then hit: http://localhost:9091/dm
>
> I will improve a bit with expiresIn and delete.
> Something else I'd like to add is a maven archetype to generate a war
> project with necessary setup.
>
> Cheers !
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>