An open API service indexing awesome lists of open source software.

https://github.com/johnpc/pixoo-wall


https://github.com/johnpc/pixoo-wall

supported

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# Write an anonymous message on John's wall

To write a message, visit [wall.jpc.io](https://wall.jpc.io) and submit the form!

Your message will appear on the wall in my house

![](public/pixoo-wallboard.png)

## Development

## Configuring environment variables

Create a .env file by copying the example. Then follow the instructions in the comments on how to set values for each environment variable.

```bash
cp .env.example .env
```

## Set up the database

Deploy necessary resources to your AWS account via

```bash
npm run sandbox
```

This will create an `amplifyconfiguration.json` file at the root of your project, which contains all configuration necessary to interact with the deployed resources.

## Testing the Wallboard

You'll need a Pixoo64 device for this work. Once your environment is configured, you may run

```bash
npm run pixoo
```

to send the latest message from your wallboard

## Testing the Website

### Install dependencies

```bash
npm install
```

### Start the development server

First, run the development server:

```bash
npm run dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.

[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/notify](http://localhost:3000/api/notify). This endpoint can be edited in `pages/api/notify.ts`.

The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.

## Deploy on Amplify

Deploy to AWS Amplify with one click

[![amplifybutton](https://oneclick.amplifyapp.com/button.svg)](https://console.aws.amazon.com/amplify/home#/deploy?repo=https://github.com/johnpc/pixoo-wall)