Built with NextJS and Typescript. Styled with TailwindCSS.
Latest live instance at troddit.com
docker pull bsyed/troddit
docker run -d --name troddit -p 3000:3000 bsyed/troddit
for arm64 pull bsyed/troddit:arm64
By default, the Docker will expose port 3000, so change this within the Dockerfile if necessary. When ready, simply use the Dockerfile to build the image.
git clone https://github.com/burhan-syed/troddit
cd troddit
docker build . -t troddit
This will create the troddit image and pull in the necessary dependencies. To run:
docker run -p 3000:3000 troddit
Clone the repo and install all packages with npm or yarn. Then to run development server:
npm run dev
# or
yarn run dev
Open http://localhost:3000 with your browser to see the result.
To use login functionality the following environment variables need to be defined:
CLIENT_ID=<ID of your Reddit app>
CLIENT_SECRET=<Secret from your Reddit app>
REDDIT_REDIRECT=http://localhost:3000/api/auth/callback/reddit
NEXTAUTH_SECRET=<See https://next-auth.js.org/configuration/options#secret>
NEXTAUTH_URL=http://localhost:3000
To create a Reddit app visit https://old.reddit.com/prefs/apps/. The redirect uri should match the REDDIT_REDIRECT variable.
Content type
Image
Digest
sha256:696350e53…
Size
53.8 MB
Last updated
about 1 year ago
docker pull bsyed/troddit