Skip to content

emceelam/Simple-Address-Mojo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Simple Adddress App

DESCRIPTION

This is the REST side of a simple address app, utilizing Google Maps. The REST side is coded with Mojolicious.

SYNOPSIS

Run REST server

./script/simple_address_mojo prefork

GETTING A GOOGLE MAP API KEY

Get a Google Map API key.

If you are running on a public web server, you need a google map API key with Key Restriction set to "IP Addresses"

If you are running on a localhost, you can generate your API key, and set Key restriction to "None".

INSTALL

Open terminal

sudo apt install openssl

sudo cpanm \
  Mojolicious \
  Mojolicious::Plugin::SecureCORS \
  File::Slurp \
  JSON \
  DBD::SQLite \
  IO::Socket::SSL \
  Net-SSLeay

make

vi address_app.conf.json
  # Add API key(s)

Now run it

# not for production use
./script/simple_address_mojo prefork

To run under production conditions, use hypnotoad

Connect to the REST server with the client

DOCKER

Docker instructions

AUTHOR

Lambert Lum

email address

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Lambert Lum

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

About

Simple Address App - Mojolicious version

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published