Code Monkey home page Code Monkey logo

not-only-fans's Introduction

NotOnlyFans

NotOnlyFans is an open source, self-hosted digital content subscription platform like onlyfans.com. The difference, however, is that it uses cryptocurrency (ETH) for payment, so the content will no longer be judged by the payment platform and credit card companies.

简体中文

Screenshots

Register and login page

Create column

Column view

Home feeds

Purchase column VIP via ETH

Subscribe and review

Message box

Modify profile

Modify personal background image

Blacklist

Multi-language

Self-hosted

Installation requirements

First we need to prepare a server with docker and docker-compose already installed, this server IP is noted as SIP.

Clone the code and start Docker

git clone https://github.com/easychen/not-only-fans.git
cd not-only-fans
docker-compose up -d --build

Initialize project data

Start by looking at the running Docker container.

docker ps

Record the container ID of the image as not-only-fans_app (CID for short), and then go inside the container.

docker exec -it ${container_id} /bin/bash

Initialize the web front end

cd /app/client/ && yarn install && yarn build

Initialize the API

cd /app/api/ && composer install && mkdir /app/api/storage && chmod -R 0777 /app/api/storage

Domain pointing

This image uses different domains to point to different directories, you can point the following two domains to the server IP (i.e. SIP before) in localhost.

  1. notonlyfans.vip → SIP (front-end domain)
  2. api.notonlyfans.vip → SIP (API domain name)

Access at this point is ready for testing.

Customization

Use your own domain name

  1. Modify docker/app/vhost.conf and replace the front-end domain and API domain with your own.
  2. modify www/client/.env.production and replace the domain name in REACT_APP_API_BASE with your API domain name
  3. modify www/api/config/app.php and replace the front-end domain name in it with your front-end domain name

Use your own infura

  1. Go to https://infura.io/ to open the service, click on the project name in Dashboard and copy the Key in Settings.
  2. Note that you can select the main or test network as needed.
  3. Update www/api/config/app.php where web3_network is located.

Use your own contract

  1. modify www/api/contract/group.js and www/api/contract/deploy.js
  2. deploy via deploy.js
  3. Fill in the address of the deployed contract in www/api/config/app.php in the corresponding place

Translated with www.DeepL.com/Translator

not-only-fans's People

Contributors

easychen avatar iblacki 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.