Skip to content

toyobayashi/visitor

Repository files navigation

visitor

Environment variables

Fill mongodb configuration.

VISITOR_DB_USER=<user>
VISITOR_DB_PASS=<pass>
VISITOR_DB_HOST=<host>
VISITOR_DB_NAME=<db>

Local development

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
    

Deploy to Vercel

npm install -g vercel
npm run d:prod