Coder Social home page Coder Social logo

charitabl-api's Introduction

Charitabl-api

Final project for Lighthouse Labs bootcamp. Not intended for production.

Authors

Companion Repos

This app requires Charitabl for front-end operations. See https://github.com/RandomHilarity/charitabl.

Dependencies

  1. body-parser: 1.19.0
  2. cors: 2.8.5
  3. dotenv: 8.1.0
  4. express: 4.17.1
  5. helmet: 3.21.1
  6. nodemon: 1.19.3
  7. pg: 7.12.1
  8. stripe: 7.9.1

Creating The DB

Use the psql -U development command to login to the PostgreSQL server with the username development and the password development.

Create a database with the command CREATE DATABASE charitabl;.

Copy the .env.example file to .env.development and fill in the necessary PostgreSQL configuration. The node-postgres library uses these environment variables by default.

PGHOST=localhost PGUSER=development PGDATABASE=scheduler_development PGPASSWORD=development PGPORT=5432

Seeding the database. Run the development server with npm start.

Make a GET request to /api/debug/reset with curl http://localhost:8080/api/debug/reset.

Use the browser to navigate to http://localhost:8001/api/debug/reset.

Using stripe to make a donation

You will need to obtain your own api keys from Stripe to make a donation in the development environment.

Visit https://stripe.com/docs/keys and sign up for your developer keys. You will need both the publishable and secret key. Use the .env.example file to update the .env.development file accordingly.

You can use credit card number 4242 4242 4242 4242 with any post dated expiry date and ccv combination to test.

charitabl-api's People

Contributors

willow123red avatar randomhilarity avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.