A no node_modules or npm REST API with a pure CSS, HTML and JS web app. Built as a requirement for the Pirple Nodejs Masterclass.
- REST API built with internal Node.js modules only
- Web App built with HTML, CSS and JS, no frameworks
- An event driven CLI for admin tasks
- Stripe integration to accept credit card payments
- Mailgun integration to send receipts as emails
STRIPE_TEST_SECRET=sk_test_<stripe_test_secret>
MAILGUN_SANDBOX_DOMAIN=sandbox<mailgun_domain>
MAILGUN_SANDBOX_ADDRESS=<something>@<mailgun_domain>
MAILGUN_API_KEY=<mailgun_api_private_key>
HASHING_SECRET=<token_hashing_string>
-
Fill in all required environment variables
-
Ensure the
carts
,tokens
,orders
, andusers
folders are present in the.data
directory -
Run the following command
STRIPE_TEST_SECRET= \ MAILGUN_SANDBOX_DOMAIN= \ MAILGUN_SANDBOX_ADDRESS= \ MAILGUN_API_KEY= \ HASHING_SECRET= \ node index.js