Deploy a decentralized Twitter-like community in minutes.
- https://reverse-social.vercel.app (SSR, cloud/serverless)
- https://www.exactchange.network/reverse (standalone client & server apps)
MongoDB is used to temporarily cache users and posts in the queue.
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.
Run the app
npm run dev
Build & run
npm run build
npm start to run the build
You can very easily deploy this Next.js app on Vercel, this is the most plug-and-play option.
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.
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.
pages/api directory is mapped to
/api/*. Files in this directory are treated as API routes instead of React pages.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation – learn about Next.js features and API.
- Learn Next.js – an interactive Next.js tutorial.
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.