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.
- Synced message editing
- Synced message deletion
- Fully intergration account functionality
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.