This is a Next.js template created for Kars Powered API's, featuring
- Automatic Redirecting
- SQL Preinstalled
- Stats
- Usefull Bases
- Copywriting
- 404 page for API Routes
npm i create-kapp@latest -g
then run the create-kapp command to initialise this template.
create-kapp
You'll be promoted with this:
? Setup the project in...? »
# Use "." or "./" for the local folder.
# Use a foldername to setup the project in that folder. (It will be created if it doesn't exist)
To initialise this template, choose one of the following options:
gh repo clone kars1996/APITemplate .
gh repo clone kars1996/APITemplate <folder-name>
# the folder name is optional
gh repo fork kars1996/APITemplate
Firstly install the dependencies:
npm i
# or
yarn
# or
pnpm i
Then, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000/v1/hello with your browser to see the result.
You can start editing the API by modifying v1/route.ts
. The Page must be reloaded to see changes
Happy Coding 🚀