*Save, share and create code snippets from your daily coding adventures.*
- Serverless Architecture
- Frontend Frameworks
- NEXTjs
- TailwindCSS
- Serverless Functions
- NEXT's inbuilt api feature with Vercel
- Database & API
- FaunaDB
- Authentication Provider
- Auth0
- Frontend Frameworks
- Auth
- Dark Mode 🌚
- Code Highlighting
- Convert code to your favourite IDE snippets
Refer to contributing.md
-
Install the app
- Run
yarn
ornpm i -g yarn && yarn
(if you don't have yarn installed)
- Run
-
Setup local dev env
- Run
cp .env.local.example .env.local
- Run
-
Create a free Fauna account here at FaunaDB.
- Create a new Database
- Create a new collection named "snippets"
- Create an index
snippets_by_user
(name)data.userId
(terms) - Go to Security Tab and get a new server key
- Add the server key as FAUNA_SECRET=
<your_server_key>
in .env.local file
- Add the server key as FAUNA_SECRET=
-
Create a free Auth0 account here at Auth0
- Create a new tennant (Auth0 walks you through the process)
- Go to applications tab and create a new application
- Select Regular Web Applications
- Goto you application dashboard and set env as:
- AUTH0_ISSUER_BASE_URL as Domain.
- AUTH0_CLIENT_ID as Client Id
- AUTH0_CLIENT_SECRET as Client Secret
- Set a long random string as AUTH0_SECRET.
-
Start the local dev build
- Run
yarn dev
- Run
This project is an improvement over the code-along from James Q Quick's video.