Skip to content

maddieamie/cookie-stand-admin-2

Repository files navigation

Cookie Stand Admin 2

Lab 39

Maddie Amelia Lewis

Version

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

Frontend ENV Sample

NEXT_PUBLIC_API_URL=url + api/v1/cookie_stands NEXT_PUBLIC_LOGIN_URL=url + api/token/ NEXT_PUBLIC_REFRESH_URL=url + api/token/refresh/

Remote API Repo

Cookie Stand API

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

Next JS info

This is a Next.js project bootstrapped with create-next-app.

Getting Started

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.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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.

About

lab 39

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published