Skip to content

Atifsid/wong-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend for Wong

Setup Instructions

  • Clone this repo -> run npm install
  • Signup on CloudFlare
  • Create a D1 database named anything (eg. WONG_DB)
  • Create a Table named 'Documents' with fields as
    • Col name: id , title, content
    • type: text, text, text
    • Set primary key only for id
  • Change the following in wrangler.toml
    • database_name = "Enter your DB name here"
    • database_id = "Enter your DB_ID name here"

Run

npm run dev

To check everything is working fine

  • Hit GET : http://127.0.0.1:XXXX (eg. 8787) to check server is working fine.

Deploy

npm run deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published