Set up a Preact Project in a Local Development Environment

InstructorJason Lengstorf

Share this video with your friends

Send Tweet

Clone the course repository at: https://github.com/learnwithjason/serverless-functions

Preact is a JavaScript library that describes itself as a fast 3kB alternative to React with the same ES6 API. This is not a course on Preact. For this course, we'll be adding serverless functionality to a predefined Preact application in your local development environment. The Preact app contains static HTML and hardcoded data to get us started quickly.

To run this application in your local development, execute the following command: npm run dev. That will open localhost:5000. You can interact with this application, but for the moment, the data is not persistent.