This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
RGo through the following steps to start installing bit components into the project : Step 1: Get yourself added in <admin_account>(pico) -> evolphin scope. Step 2: Setup a password along with SSO login into bit.dev account of yours. Step 3: Run 'bit login' from your terminal window. Step 4: Setup bit.dev registry for your organisation library by running this command 'npm config set '@evolphin:registry' https://node.bit.dev' ('evolphin' is scope-owner in our case). Step 5: Run command 'npm login --registry=https://node.bit.dev --scope=@evolphin' and do the login with your username and password of bit.dev. Step 6: Now you can install any component using it's package name like as follows : 'npm i @evolphin/library.components.h-layout'. Step 7: If bit registry doesn't get recognised, then add a .nprmc file in project directory with value '@evolphin:registry=https://node.bit.dev' Step 8: Once your component is installed, you can import it using it's package id in any js page and use it.
- Move login, logout, signup methods to the useAuth hook?
- Replace fetch call with axios as axios has many advantages over fetch https://betterprogramming.pub/why-javascript-developers-should-prefer-axios-over-fetch-294b28a96e2c
- Add interceptors for updating headers on request and handling auth errors on response
- Look into useSWR hook