NHMD / svampeatlas

https://svampe.databasen.org
MIT License
4 stars 2 forks source link

Danish Fungal Atlas

An online database of georeferenced biodiversity data about Fungi including Lichens.

Prerequisites

Data stores

Tools

Optional

The project has been bootstrapped with the Yeoman scaffolding tool, using the [angular-fullstack] (https://github.com/DaftMonk/generator-angular-fullstack) generator. While the Yeoman tool itself is not mandatory for the project to run, it provides some helpful generators for routes, services etc. for developers.

Therefore it is recomended to follow

You will find valuable information about the development setup and application structure in the [angular-fullstack] (https://github.com/DaftMonk/generator-angular-fullstack) git repo.

Create database in MySQL

mysql -u <username> -p <password>
mysql> create database svampeatlas;
mysql> exit;
mysql -u <username> -p <password> svampeatlas < sql/svampeatlas.sql

Configuration

Edit this file and update it according to your development database settings:

server/config/environment/development.js

Install dependencies

In the root directory (where package.json and bower.json are placed):

npm install
bower install

Run the application

To run the application in dev mode:

grunt serve 

To build and run the application in prod mode:


grunt serve:dist 

This will build and package the app into the dist folder.

Deploy to production

In production we use NGINX as webserver. It handles static file serving and is set up to use SSL with letsencrypt.

Behind NGINX we use the PM2 process manager to manage the nodejs processes and Thumbor is used for image optimizations / caching.

Deployment architecture diagram here

Funding

This project is funded by Aage V. Jensen Naturfond

License

See the LICENSE file for license rights and limitations (MIT).