Food tracker is a web application that allows foodies, food lovers, to discover a different culinary offer in any city.
Focused on street food, specifically food trucks, the food tracker application makes visible those restaurant services that, due to their itinerant nature, do not usually have a fixed location and, as a consequence, are difficult to find in some of the most used tools like Google Maps.
- Install the correct Node.js version specified in
.nvmcr
. - Install all the project dependencies with
npm install
. - Create the
.env
and.env.local
files and add the variables specified below.
- Start the Postgres DB container
docker-compose up
- Trigger migrations
npm run prisma:migrate
- Seed Database
npm run prisma:seed
- Start development server
npm run dev
- Build the application with
npm run build
- Start the server with
npm run start
DATABASE_URL
: It is the only one that it is saved in the.env
file and corresponds to the Data Base connection URL.AUTH0_SECRET
: Can be any token generated withopenssl rand -hex 32
.AUTH0_DOMAIN
: Url of the Auth0 application to handle the user management API.AUTH0_CONNECTION
: Connection name of the data base where users are found.AUTH0_BASE_URL
: String telling Auth0 where the application is running likehttp://localhost:3000
.AUTH0_ISSUER_BASE_URL
: Url defined automatically by Auth0 to define and validate the app.AUTH0_CLIENT_ID
: Auth0 client id for the applications authentication.AUTH0_CLIENT_SECRET
: Auth0 client secret for the applications authentication.AUTH0_CLIENT_ID_API
: Auth0 client id for the Machine-to-Machine Application.AUTH0_CLIENT_SECRET_API
: Auth0 client secret for the Machine-to-Machine Application.NEXT_PUBLIC_SUPABASE_URL
: Supabase project's base URL.NEXT_PUBLIC_SUPABASE_ANON_KEY
: Anon key to secure Supabase client libraries.SUPABASE_JWT_SECRET
: Token to decode Supabase JWT and create your own ones.