Skip to content

devhausleipzigacademy/camp8-final-project

Repository files navigation

FINAL PROJECT

This is our final project.

The idea is a shopping list App with catagorizations depending on type.

INSTALLATION

To start to develop:

  • Make sure You have an .env file in root-Folder * (!)
  • Stop other projects in Docker, if any are running.
  • run "pnpm all-dev" (see package.json)

FIGMA FILE

Link to the Figma file: https://www.figma.com/file/MwSsIVfA5KQIZCdhIcASnC/Grocery-App?node-id=1%3A4&t=DtQdRXnNpxqWqUqN-1

COLOR REFERENCES

Color Hex
Example Color #0a192f #0a192f
Example Color #f8f8f8 #f8f8f8
Example Color #00b48a #00b48a
Example Color #00d1a0 #00d1a0

BACK_END

  1. Prototype your schema according to : pnpx prisma db push

  2. To run .ts files (Endpoints) do nothing, next.js runs server.ts automatically due to the folder structure. All Zod filters should be at the bottom of their respective endpoints since each one is unique (or al least nearly)

  3. To run prisma browser-interface : pnpx prisma studio

  4. To add JSON data to prisma db run: pnpm prisma db seed This will run the seed.ts script

  • ask a team member for .env file contents.

API REFERENCE

Example API backend

  GET /api/items
Parameter Type Description
api_key string Required. Your API key
  POST /api/addItem
Body Type Description
query, inputList string, string query is the item you want to add to a list. inputList is the ID of the list you want to add it to

Possible responses from system:

-201 Item was added to list in category Other.

-405 Item was already added to list.

-200 Item added to list correctly.

add(num1, num2)

Takes two numbers and returns the sum.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published