Skip to content

oscarfonts/besobs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Observacions Faunístiques

Install and run

Requires git and node 4.x.

Clone this project:

git clone https://github.com/oscarfonts/besobs.git

Install node dependencies:

npm install

Install bower dependencies:

npm install -g bower
bower install

Create the DATA_DIR/config.json file and put your CartoDB credentials and public base URL. Use DATA_DIR/config.sample.json as model.

Create some users:

node auth/create_user.js <username> <password> [<isAdmin>]

Note an users database will be created on DATA_DIR/users.db.

Run using node (we can optionally specify a different location for DATA_DIR):

node server.js [<data_dir_location>]

Then access through your browser:

http://localhost:2015/

http://localhost:2015/api/

Adding dependencies

Server side:

npm install --save <node_package>

Client side:

bower install --save <bower_package>

Deploying on a server

Get the code:

cd /srv
wget https://github.com/oscarfonts/besobs/archive/master.zip
unzip master.zip
rm master.zip
mv besobs-master besobs

Get the dependencies:

cd besobs/src
npm install
bower install

Create the DATA_DIR/config.json file.

Add some users with the create_user.js script.

Change permissions over files:

chown -R www-data .

Copy & run the upstart script:

mv besobs/deploy/besobs.conf /etc/init/
chown root /etc/init/besobs.conf
service besobs start

Expose port 2015 through Apache, editing /etc/apache2/sites-available/<whatever>.conf:

ProxyPass /besobs http://localhost:2015
ProxyPassReverse /besobs http://localhost:2015

Then restart apache:

service apache2 reload

About

Observacions Faunístiques

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published