This is a Next.js project bootstrapped with create-next-app
.
This is a Next.js project bootstrapped with create-next-app
.
- Primus
- Tanuja
- Keerthika
- Reshma
- Create a [
.env.local
] file in the root directory - and fill in the details from your firebase setup.
- This is an example
NEXT_PUBLIC_API_KEY=
NEXT_PUBLIC_AUTH_DOMAIN=appName.firebaseapp.com
NEXT_PUBLIC_PROJECT_ID=
NEXT_PUBLIC_STORAGE_BUCKET=appName.appspot.com
NEXT_PUBLIC_MESSAGING_SENDER_ID=
NEXT_PUBLIC_APP_ID=
NEXT_PUBLIC_MEASUREMENT_ID=
First , run:
npm install
# or
npm setup
Second, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
npm i react-icons --save # | Let's you easily get any Icons - Material, FontAwesome, etc.
npm i react-firebase-hooks # | Let's you easily import the user and check if the user is ther or not
- import {useAuthState} from 'react-firebase-hooks';
- import {auth} from '../../utils/firebase';
- all the components are being passed into the Layout component which is then passed into the App.
- We will take care to rectify this
[x] - ensure the quiz is only accessible from the private route
- Currently, just inputing the right link will give you the quiz
- Either move the entire quiz folder into the private folder or change the links
[] - use-sound | an npm package for sound prompts
This library only works in React DOM, but [@remigallego] created an alternative for React Native! Check out https://github.com/remigallego/react-native-use-sound react-native-use-sound.
- TODO - We will look into implementing this feature at a later date; because NextJs currently does not support Audio rendering
[x] - Check the Navbar | Images tag should be used not img tag
This will fix most of the hydration ui issue.
[] - Remove the alert from the notification bell
Remove the alert after user has opened the message(s)
[x] - Fix the style in login page
Use the tailwindcss bg-color tag and not the inline style tag
[x] Hydration Error caused by authentication state
- Fix the authentication state for all the pages,
- Make sure that authState is properly used where needed.
Only those with the token will be able to see the admin login page
We can implement a features where the 2 canvases are in one page and each is revealed at different camera positions
const nextConfig = {
reactStrictMode: true,}
module.exports = {
images: {
domains: ['wallpapercave.com'], },
nextConfig};
- If you have made changes to either the
package.json
file or thenext.config.js
file - and the app is not starting up, delete the
.next
folder and run -npm run dev
. - If the issue is not fixed, contact the
admin
orteam blueblood