Add option to deploy using other services (#2525)

* Create express.js

* Update readme.md

* Update readme.md
This commit is contained in:
Zohan Subhash
2023-02-25 19:34:00 +05:30
committed by GitHub
parent 2ab8b85ae3
commit 1d528da1dc
2 changed files with 38 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
import statsCard from './api/index.js'
import repoCard from './api/pin.js'
import langCard from './api/top-langs.js'
import wakatimeCard from './api/wakatime.js'
import express from 'express'
import dotenv from 'dotenv'
dotenv.config()
const app = express()
app.listen(process.env.port || 9000)
app.get('/', statsCard)
app.get('/pin', repoCard)
app.get('/top-langs', langCard)
app.get('/wakatime', wakatimeCard)