Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hooopo/tidb-serverless-vercel
GPT Action for https://chat.openai.com/g/g-YQhsPRkRF-mysql-playground
https://github.com/hooopo/tidb-serverless-vercel
Last synced: 14 days ago
JSON representation
GPT Action for https://chat.openai.com/g/g-YQhsPRkRF-mysql-playground
- Host: GitHub
- URL: https://github.com/hooopo/tidb-serverless-vercel
- Owner: hooopo
- Created: 2024-01-16T16:51:47.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-11T06:36:38.000Z (9 months ago)
- Last Synced: 2024-10-18T16:38:37.223Z (26 days ago)
- Language: TypeScript
- Homepage: https://sql-exec.vercel.app
- Size: 71.3 KB
- Stars: 0
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Dev
setup .env file
```
DATABASE_URL=mysql://user:[email protected]:4000/test
``````
npm install
npm run start```
## Prod
### clone codebase
```
git clone https://github.com/hooopo/tidb-serverless-vercel.git
```
and```
cd tidb-serverless-vercel
```### Link to vercel
```
vercel link
```> Vercel CLI 31.0.4
> ? Set up “~/hooopo/tttttt”? [Y/n] y
>
> ? Which scope should contain your project? hooopo
>
> ? Link to existing project? [y/N] n
>
> ? What’s your project’s name? hello
>
> ? In which directory is your code located? ./### Setup env
```
vercel env add DATABASE_URL
```Make sure the 'Production' option is checked, like this:
### Deploy to production
```
vercel --prod
```