Skip to content

Commit 0d25203

Browse files
authored
Merge pull request #46 from micro-analytics/now
Make it deployable with now
2 parents a913edc + d5506ef commit 0d25203

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This is used to be able to write to the flat-file-db
2+
FROM node
3+
4+
RUN mkdir -p /opt/micro-analytics
5+
WORKDIR /opt/micro-analytics
6+
COPY . /opt/micro-analytics
7+
8+
RUN npm install
9+
RUN npm run build
10+
11+
EXPOSE 3000
12+
13+
CMD [ "npm", "start" ]

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
Public analytics as a Node.js microservice, no sysadmin experience required.
44

5-
[![Build Status](https://travis-ci.org/micro-analytics/micro-analytics.svg?branch=master)](https://travis-ci.org/micro-analytics/micro-analytics)
5+
[![Build Status](https://travis-ci.org/micro-analytics/micro-analytics.svg?branch=master)](https://travis-ci.org/micro-analytics/micro-analytics) [![Deploy to now](https://deploy.now.sh/static/button.svg)](https://deploy.now.sh/?repo=https://github.com/micro-analytics/micro-analytics-cli)
6+
67

78
A tiny analytics server with ~100 lines of code, easy to run and hack around on. It does one thing, and it does it well: count the views of something and making the views publicly accessible via an API.
89

now.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "micro-analytics",
3+
"type": "docker"
4+
}

0 commit comments

Comments
 (0)