Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/toyobayashi/visitor


https://github.com/toyobayashi/visitor

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

# visitor

[![](https://toyobayashi-visitor.vercel.app/api/visitor?uid=toyobayashi%2Fvisitor%2FREADME.md)](https://toyobayashi-visitor.vercel.app/api/visitor?uid=toyobayashi%2Fvisitor%2FREADME.md)

## Environment variables

Fill mongodb configuration.

```
VISITOR_DB_USER=
VISITOR_DB_PASS=
VISITOR_DB_HOST=
VISITOR_DB_NAME=
```

## Local development

```bash
git clone https://github.com/toyobayashi/visitor.git
cd visitor
npm install
```

Create `.env` file in root, add environment variables mentioned above.

* Serverful

```bash
npm run build:server

# or
# npm run watch:server
```

```bash
node index
```

* Vercel dev (Serverless)

```
npm install -g vercel
npm run dev
```

## Deploy to Vercel

```
npm install -g vercel
npm run d:prod
```