A note keeping web application template using Mantine, Next 14, Tiptap (WSIWYG rich text editor), JSON server and SWR
Kindly note: Primarily this template is geared to be used with a backend or content management service and because of that I have added json server and a db.json on the root directory. I have already written SWR fetching data hooks that can serve as a base for your development.
- Clone this repo git clone
https://github.com/design-sparx/scribble-vault.git
- Download from GitHub
Before installing, it in your project root directory, create an env.local
file and paste the below.
NEXT_PUBLIC_BASEURL=http://localhost:8000
Note: The above variable will help in the consumption of your JSON server endpoints.
You'll need to go ahead and install Node.js. Once Node.js is installed, run npm install to install the rest of the template's dependencies. All dependencies will be downloaded to the node_modules directory.
yarn install
Before running your Nextjs server, you must run your JSON server. This will serve your local web server at http://localhost:8000, using the following command.
yarn json:serve
Now you're ready to modify the source files and generate new files. To automatically detect file changes and start a local webserver at http://localhost:3000, run the following command.
yarn dev
Compile, optimize, minify and uglify all source files to build
yarn build