Skip to content

A simple and easy to use chat messaging system. Created using Typescript, VueJS, ExpressJS, TypeORM, Postgres & Socket.io.

License

Notifications You must be signed in to change notification settings

UncleMle/hovercraft-chat

Repository files navigation

Hovercraft.chat

A simple and easy to use chat messaging system.

Disclaimer: Please Bear mind this project is still very much a work in progress so there may be bugs and or features that are not finished.

Hovercraft.chat is a chat platform created using Express JS, VueJS, TypeORM, Axios, DiscordJS (Intergration) and Socket.io.

Things being worked on

  • Synced message editing
  • Synced message deletion
  • Fully intergration account functionality

How to configure

Head over to /discord/discord.conf.ts your config will look like this.

const config : Config = {
    token: "", // Bot token
    prefix: "=", // Cmd Prefix
    botCommandChannels: ['', ''], // Channel IDs
    botConsoleChannel: '', // Channel ID
    developerRoles: [''], // Role Names eg: Developer Team
    staffRoles: [''], // Role Names eg: Staff Team
    statUpdateTime: 10, // Update time for stat edit
    statChannel: '', // Channel ID
    statMsgId: '', // Channel ID
    clientId: '', // Bot Client ID
    managementChannel: '', // Channel Id
    clientSecret: '', // Bot Client Secret
    redirectUrl: 'http://localhost:8081/auth/discord'
}

After configuring the discord intergration you must now setup the postgres database. Head over to /db/data-source.ts in the typeORM configuration. It should look like this fill in the credentials and ensure you have a created a new database.

export const AppDataSource = new DataSource({
    type: "postgres",
    host: "",
    port: 5432,
    username: "",
    password: "",
    database: "",
    synchronize: true,
    logging: false,
    entities: [
        webTokens,
        logs,
        Accounts,
        Sessions,
        openSockets
    ],
    migrations: [],
    subscribers: [],
})

After entering your database and the login credentials you can install the web and backend node packages. To do this type npm i in both the root directory and in /client/. After doing so you can type npm run devstart in the root directory and then npm run serve in /client/ to start the vue web development server.

Landing Page

Chat Page

About

A simple and easy to use chat messaging system. Created using Typescript, VueJS, ExpressJS, TypeORM, Postgres & Socket.io.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published