calvinfeng / sling

Sling messaging mimics Slack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About Sling

Sling messaging mimics Slack

Usage

Set up your local SQL database, you will need to install Postgres if you don't already have it. This link does a great job of doing this.

http://postgresguide.com/setup/install.html

Add jcho as a superuser.

Upen the psql envirnment to make changes.

$ sudo -u postgres psql
psql (10.9 (Ubuntu 10.9-0ubuntu0.18.04.1))
Type "help" for help.

postgres=#

Run the following commands to add the superuser jcho.

postgres=# create role jcho superuser login;
postgres=# alter user jscho with password 'jcho'
postgres=# create database sling with owner=jcho; 

Compile and run the server code:

go install
sling runmigrations

Build the frontend:

cd frontend/
npm run build

Finally, run the server:

sling runserver

Open localhost:8888 on your browser to begin chatting!

About

Sling messaging mimics Slack


Languages

Language:JavaScript 98.2%Language:Go 0.8%Language:TypeScript 0.8%Language:HTML 0.1%Language:CSS 0.0%Language:TSQL 0.0%