This demo application for teachme.to is a TypeScript T3 stack app using the following:
-
Copy
.env.example
to a new.env
fileNote: this app assumes access to a PostgreSQL database as defined in the .env.example file)
cp .env.example .env
-
Install project dependencies
npm install
-
Run any Prisma migrations
This will also seed the database with expected values
npx prisma migrate dev
-
Run application
By default the app will run on localhost:3000
npm run dev
This demo app makes some concessions to simplicity that would not be viable in a real application. Some of these are listed below:
- Availability for an instructor is a simple list of Datetime objects in the database schema.
- Users are stubs without auth fields.
- The app has no useful landing page.
- Listing images are static and not tied to the listing model.
- The listing video and it's thumbnail are static local assets.
- The 404 page follows the system theme but the rest of the app does not.
- Most buttons simply alert on click.
- Time panel is simply at bottom of page on mobile.
- Extra listing images are hidden on mobile.