Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toyobayashi/visitor
https://github.com/toyobayashi/visitor
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/toyobayashi/visitor
- Owner: toyobayashi
- Created: 2021-05-06T08:27:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-06T10:32:06.000Z (over 3 years ago)
- Last Synced: 2024-11-05T22:46:07.446Z (about 2 months ago)
- Language: TypeScript
- Homepage: toyobayashi-visitor.vercel.app
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```