Version 1
- Creation of components folder
- Creation of form
- Styling of main page
Version 2
- Form changed to CreateForm
- Fake state in main app to update ReportTable
- ReportTable app created
- Data.js added
- Index.js updated with CookieStandAdmin component
Version 3
- Use demo code from lab39 to create the front end
- Update styling
- Create env files
- Connect to remote repo - Cookie Stand API
Version 4
Lab 37 & 38 Frontend Repo Cookie Stand Admin 1
NEXT_PUBLIC_API_URL=url + api/v1/cookie_stands NEXT_PUBLIC_LOGIN_URL=url + api/token/ NEXT_PUBLIC_REFRESH_URL=url + api/token/refresh/
Docker and Postgres hosted locally for version 3.
API ENV DEBUG=True ENVIRONMENT=development or production ALLOWED_HOSTS=localhost or production ALLOWED_ORIGINS=http://localhost:3000
SECRET_KEY=your_secret_key DB_NAME=cookie_stand_db DB_USER=cookie_user DB_PASSWORD=your_password DB_HOST=db DB_PORT=5432
This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
This is a Next.js project bootstrapped with create-next-app
.
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.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
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.