Fill mongodb configuration.
VISITOR_DB_USER=<user>
VISITOR_DB_PASS=<pass>
VISITOR_DB_HOST=<host>
VISITOR_DB_NAME=<db>
git clone https://github.com/toyobayashi/visitor.git
cd visitor
npm install
Create .env
file in root, add environment variables mentioned above.
-
Serverful
npm run build:server # or # npm run watch:server
node index
-
Vercel dev (Serverless)
npm install -g vercel npm run dev
npm install -g vercel
npm run d:prod