actionhero / actionhero-chat

An example Actionhero application using seqeulize and next.js
https://chat.actionherojs.com
2 stars 1 forks source link
actionhero heroku nextjs react

Actionhero Chat Sample Project

CircleCI


Welcome to Actionhero Chat!

When you sign up, you can chat with other users!


This project is a fully-fledged modern application based on Actionhero, React, and Next.JS. It uses Sequelzie as the ORM and connects to Redis and Postgres. This app is deployed automatically to Heroku from the master branch. This project is meant to serve as an example for a more complex Actionhero projects.

This application features:

Overview

This project runs Actionhero, which then in turn hands of processing of the front end to next.js - the project includes the code for both our backend (actionhero) and frontend (next.js).

API

Front End

Running Locally (OSX)

# 1. ensure that postgres and redis are running
brew install postgresql
brew install redis
brew services start postgresql
brew services start redis

#2. create the postgres database
createdb chat_development

#3
npm start # or `npm run dev`

Testing

#1. create the postgres databases (we will run up to 5 tests in parallel)
./api/bin/create_test_databases

#2 Install the Chrome webdriver
# (on OSX)
brew cask install chromedriver

#3. Run the test suite
# we will built the app, run linters, and test the web and api
npm test

Deployment

This project is automatically deployed to Heroku upon changes to the master branch. chat.actionherojs.com hosts the latest version of this codebase. The Procfile determines what processes are run by Heroku.