Coder Social home page Coder Social logo

feedback-app-munchi's Introduction

๐Ÿ“Œ Project Documentation


๐ŸŒ Frontend

Overview:

The frontend of this project is a React application, utilizing the Stripe API for payment functionalities.

๐Ÿ“ฆ Dependencies:

  • Stripe Integration:

    • @stripe/react-stripe-js: React components for Stripe.
    • @stripe/stripe-js: Stripe's JS library.
    • react-stripe-elements: Deprecated React components for Stripe.
  • Utilities:

    • axios: Promise based HTTP client.
    • moment: Date library for parsing, validating, and manipulating dates.
  • React Ecosystem:

    • Miscellaneous: react-emojis, react-icons, react-router-dom

๐Ÿ”ง Scripts:

  • start: Boot up the development server.
  • build: Prepare app for production.
  • test: Execute tests.
  • eject: Remove the single build dependency from the project.

๐Ÿ›  Backend

Overview:

The backend runs on a Node.js server, primarily built with Express. It interfaces with a MongoDB database through Mongoose and offers email functionalities via Nodemailer. Additionally, Stripe integration enables payment processing.

๐Ÿ“ฆ Dependencies:

  • Express and Middleware:

    • express: The backbone of the backend.
    • cors: Middleware for enabling Cross-Origin Resource Sharing.
  • Database:

    • mongoose: ORM for MongoDB.
  • Configuration:

    • dotenv: Manage environment variables.
  • Email:

    • nodemailer: Send emails seamlessly.
  • Payment Processing:

    • stripe: Handle payments securely.
  • Typescript and Typings:

    • typescript: Enabling type-safe JavaScript.
    • Type definitions like @types/express, @types/mongoose, and others.
  • Development:

    • nodemon: Auto-restart during development.
    • ts-node: Execute TypeScript without a prior compile step.

๐Ÿ”ง Scripts:

  • start: Launch the backend with TypeScript.
  • build: Convert TypeScript to JavaScript.
  • serve: Host the built backend.

๐Ÿš€ Getting Started

๐ŸŒ Frontend:

  1. cd into the frontend directory.
  2. Install dependencies: yarn
  3. Launch development server: yarn start
  4. For production: yarn run build

๐Ÿ›  Backend:

  1. cd into the backend directory.
  2. Install dependencies: yarn
  3. Configure .env in the root directory with necessary environment variables, please check .env.example for better insight.
  4. Launch development server: yarn start
  5. For production: Build with yarn run build, then serve with yarn run serve.

โ— Note: Please note that paying tip using Apple Pay is only visible if user is using iOS or MacOS devices, and paying tip using Google Pay is only visiable if user is using Window or Android devices. โ— Note: Please using this email service provider for nodemailer (https://mail.zoho.eu/), because email.service has been set up with it. There are emails for testing in .env.example in backend folder.

feedback-app-munchi's People

Contributors

cuongvu3009 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.