Skip to content

JCharante/food-api

Repository files navigation

food-api

This repo uses the standard preset for eslint, minus a few rules to simplify development.

Context

I was previously working on building a food-delivery app targeting a specific niche, but with my business partner decided to stop. I still enjoy working in this tech stack, so I plan to continue developing this app for recreational purposes and now am able to make the source code publicly available.

This repo was previously hosted on a different service and my other laptop has a different git author identity, so I ran git rebase -r --root --exec "git commit --amend --no-edit --reset-author", which reset the commit times. Additionally past commit names make references to an internal issue board that won't be published.

Companion repo: https://github.com/JCharante/food-app

TODO List:

  • Add tests
  • Track amount of API requests per user per endpoint per day

Getting Started

Download links:

SSH clone URL: ssh://[email protected]/goodies/goodies/api.git

HTTPS clone URL: https://git.jetbrains.space/goodies/goodies/api.git

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Times are stored in Prisma using the DateTime type and times are all UTC.

Prerequisites

What things you need to install the software and how to install them.

Examples

Changing the Database

https://www.prisma.io/docs/guides/migrate/developing-with-prisma-migrate#second-migration-add-new-fields

Migrations missing from local directory

The following migration(s) are applied to the database but missing from the local migrations directory: 20230801135436_added_postgis_extension

If you know what you're doing, you can delete the migration records from the DB

https://stackoverflow.com/a/60703157

Postgis Indexes

https://www.prisma.io/docs/guides/migrate/developing-with-prisma-migrate/include-unsupported-database-features

Manual Testing

In addition to the app, you can use trpc playground to test the API link

Deployment

Add additional notes about how to deploy this on a production system.

Resources

Add links to external resources for this project, such as CI server, bug tracker, etc.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published