diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d54c4d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +.env +.git +.DS_Store +npm-debug.log diff --git a/README.md b/README.md index b5a09b5..4229462 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,6 @@ Body: Response: ```json -Copy code { "licenseKey": "generated.jwt.token" } @@ -88,7 +87,6 @@ POST /validate-license Body: ```json -Copy code { "userId": "user123", "licenseKey": "generated.jwt.token" diff --git a/.env.example b/example.env similarity index 91% rename from .env.example rename to example.env index 8279e29..840e3da 100644 --- a/.env.example +++ b/example.env @@ -1,3 +1,5 @@ +# Rename to .env + DB_HOST=your-db-host DB_NAME=license_db DB_USER_ADMIN=license_admin diff --git a/package.json b/package.json new file mode 100644 index 0000000..9899d29 --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "license-lib", + "version": "1.0.0", + "description": "Simple, secure licensing library for Node.js, React, and Next.js.", + "main": "server/index.js", + "author": "Joseph Thompson ", + "license": "MIT", + "keywords": ["license", "nodejs", "react", "nextjs", "pwa", "jwt"], + "repository": { + "type": "git", + "url": "https://git.thejthompson.com/thompsonjd85/license-lib.git" + } + } + \ No newline at end of file