https://github.com/ajitkumarpal1/clickcoinbe
https://github.com/ajitkumarpal1/clickcoinbe
apollo-server express graphql graphql-server graphql-yoga supabase
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ajitkumarpal1/clickcoinbe
- Owner: ajitkumarpal1
- Created: 2024-10-22T21:01:37.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T14:55:05.000Z (12 months ago)
- Last Synced: 2024-10-23T18:28:22.510Z (12 months ago)
- Topics: apollo-server, express, graphql, graphql-server, graphql-yoga, supabase
- Language: TypeScript
- Homepage: https://clickcoinbe.onrender.com/graphql
- Size: 4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL Server for TapMe Telegram Mini App
## Setup Instructions
Follow the steps below to set up the GraphQL server for the TapMe Telegram Mini App locally.
1. **Add the .env File Globally:**
Create a `.env` file in the root directory with the following example configuration:
```
PORT=2999
SUPABASE_URL=https://YOUR_SUPABASE_DATABAS_URL_LINK
SUPABASE_ANON_KEY=YOUR_SUPABASE_ANON_KEY
```
*Example of database in sql format*
```
INSERT INTO "public"."coinMetaData" ("id", "created_at", "userId", "coinCount")
VALUES ('1', '2024-10-22 10:16:18+00', '79344712', '0'),
('2', '2024-10-22 15:50:37+00', '123456', '123'),
('10', '2024-10-22 20:59:51.727598+00', '793447125', '536');
```
*Example pic of database table*
2. **Build the Project:**
Build the project using one of the following commands:
```
npm run build:watch
```
**OR**
```
npm run build
```
3.Run the Server:
Start the server with one of the following commands:
```
nodemon dist/index.js
```
**OR**
```
node dist/index.js
```