Skip to content

Latest commit

 

History

History
108 lines (77 loc) · 2.02 KB

README.md

File metadata and controls

108 lines (77 loc) · 2.02 KB

Pouzz | Anonymous confessions

Pouzz App - Get Anonymous confessions from friends, family, online random people

image

Installation

Prerequisites

  • Node.js 18.17 or later
  • npm or yarn
  • Git

Installation

  1. Clone the repository
git clone https://github.com/hellofaizan/secretmsg.git
cd secretmsg
  1. Install dependencies
npm install
# or
yarn
  1. Set up environment variables Create a .env file in the root directory: These are env examples
# Your environment variables here
DATABASE_URL="postgresql://postgres:figscreen@localhost:5432/figscreen"

NEXTAUTH_URL="http://localhost:3000"
NEXT_PUBLIC_Website_URL="http://localhost:3000"
NEXTAUTH_SECRET="testing"
NODE_ENV="development"
# development || production

# Next Auth Google Provider
GOOGLE_CLIENT_ID="google client id"
GOOGLE_CLIENT_SECRET="google secret"

# LemonSqueezy
LEMONSQUEEZY_API_KEY="Paste apikey here"
LEMONSQUEEZY_STORE_ID="Store id here settings/stores"
NEXT_PUBLIC_LS_1_VARRIENT_ID="Veriant id of 1st product"
NEXT_PUBLIC_LS_2_VARRIENT_ID="Veriant id of 2nd product"
LEMONSQUEEZY_WEBHOOK_SECRET="secret"
WEBHOOK_URL="http://localhost:3000/api/webhooks"

# Resend
RESEND_API_KEY="resend api key"
EMAIL_FROM="[email protected]"
  1. Create table in database
yarn db:sync
  1. Run the development server
npm run dev
# or
yarn dev

The application will be available at http://localhost:3000

Building for Production

npm run build
# or
yarn build

To start the production server:

npm start
# or
yarn start

API Documentation

Authentication

Note

API under high priority development

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request