A decentralized Twitter-like social media site

Reverse

Deploy a decentralized Twitter-like community in minutes.

Live Instances

Screenshots

Reverse (desktop):

Reverse (mobile):

Setup

See .env.example.

MongoDB is used to temporarily cache users and posts in the queue.

MONGO_URI=
DB_NAME=

Dereva is the underlying content blockchain where users and posts are retained in a peer-to-peer network.

DEREVA_API_KEY=
DEREVA_URI=
DEREVA_ADDRESS=

Nodemailer is used for email dispatch.

MAIL_HOST=
MAIL_NAME=
MAIL_PASS=
MAIL_SERVICE=

One-time passwords are used to authenticate creating users and posts.

OTP_EXPIRATION=

Run the app

npm run dev

Build & run

  npm run build

npm start to run the build

Deploy

Vercel

You can very easily deploy this Next.js app on Vercel, this is the most plug-and-play option.

Elsewhere

You can also move the Vercel serverless API (the pages/api/ directory) to its own Node application using node-service-core, and deploy it to your favorite cloud platform, or run it on-prem. For the front-end, you can build the React app and deploy it static anywhere.

Attribution

Logo design of the letter R, a combination of a goose feather pen by ruslyeffendi3120760 (source)


Next.js

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository – your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

GitHub

View Github