Giter Club home page Giter Club logo

accredianbackend's Introduction

๐Ÿš€ Refer & Earn Backend

Welcome to the backend service for the Refer & Earn application! This service handles user referrals and notifications using a robust stack of modern technologies.

๐Ÿ› ๏ธ Technologies Used

  • TypeScript - For type-safe JavaScript
  • Node.js - Runtime environment
  • Express - Web framework
  • MySQL2 - Database driver
  • Prisma ORM - Database ORM
  • Nodemailer - For sending emails
  • Mailgen - For generating email templates
  • Nodemon - For automatic server restarts
  • Dotenv - For managing environment variables

๐Ÿ“ฆ Setup Instructions

  1. Clone the repository

    git clone https://github.com/Chandan8018/AccredianBackend.git
    cd AccredianBackend
  2. Backend Setup

    npm install
  3. Environment Variables

    • Create a .env file in the root directory and add your MySQL URI, EMAIL, and other necessary environment variables.
  4. .env

    DATABASE_URL="mysql://userName:password@localhost:3306/refer_and_earn"
    EMAIL="[email protected]"
    PASSWORD="zhdwrvnm*****"
    PORT=1234
  5. Run Prisma migrations

    npx prisma migrate dev
  6. Start the server

    npm run dev

Folder Structure

.
โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ controllers
โ”‚   โ”œโ”€โ”€ middleware
โ”‚   โ”œโ”€โ”€ models
โ”‚   โ”œโ”€โ”€ routes
โ”‚   โ”œโ”€โ”€ services
โ”‚   โ””โ”€โ”€ utils
โ”œโ”€โ”€ prisma
โ”‚   โ””โ”€โ”€ schema.prisma
โ”œโ”€โ”€ .env
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ tsconfig.json

Demo

  • Refer Notifiction Mail Page Refer-Notifiction-Mail-Page

Contact

For any questions or inquiries, please contact:

Feel free to reach out for any questions, suggestions, or contributions. Happy coding!

accredianbackend's People

Contributors

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