gyarbij/nottit
A front end security and privacy focused web client for Reddit
2.2K
A progressive web app and client for Reddit with authenticated logins via the reddit API and a variety of browsing options based on Troddit. It also
To use login functionality the following environment variables need to be defined in your compose file, cloud host settings or a .env.local file placed in the root directory for non docker deployments:
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
docker pull gyarbij/nottit
docker run -d --name nottit -p 3000:3000 gyarbij/nottit
Alternatively for arm64:
docker pull gyarbij/nottit:arm64
To deploy as an azure web app, always use the :latest tag or specify :amd64 as the arm64 image will not run on the linux ASP!
gyarbij/nottit:latest
Alternatively specify amd64:
gyarbij/nottit:amd64
Enter the environment variables in
YourWebApp > Settings > Configuration > Application settings
To deploy on lightsail, always use the <:latest tag> or specify <:amd64>
Additionally, open port 3000 in the deployment setup
Ensure to select the nottit container as the public endpoint!
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/gyarbij/nottit
cd nottit
docker build . -t nottit
This will create the nottit image and pull in the necessary dependencies. To run:
docker run -p 3000:3000 nottit
Clone the repo and install all packages with npm or yarn. Then to run development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
To contribute, create a branch and submit a PR!
To use login functionality, the following environment variables need to be defined in a .env.local file placed in the root directory:
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.
docker pull gyarbij/nottit