Basic Discord Clone
Basic Discord clone [WIP]
Pull Requests are welcome!
View it live at: https://dissonance.page/join/PGwQuWer
Screenshot(s):
$ npm i --save
.env
file, by renaming the provided .sample.env
.env
fileIf you set ENV
to prod
, you will need to set up a https certificate via
CERT_FULL_CHAIN_PATH
and CERT_PRIVATE_KEY_PATH
If you set ENV
to something other than prod
(i.e. dev
), you will need to set CERT_FULL_CHAIN_PATH
and CERT_PRIVATE_KEY_PATH
to a random string (so the
environment variable is defined)
In your Terminal or Command Prompt, run the following at the root of the project directory to run the server, which will expose an API and the client:
$ npm start
dissonance
:$ docker build --tag dissonance .
In your Terminal or Command Prompt, run the following to run the server, which
will expose the service on port 3000
if you have the a .env
file:
$ docker run -t -p 3000:3000 --env-file ./.env dissonance
Or run the following in Terminal/Command Prompt to define custom environment variable(s)
$ docker run -p 3000:3000 -e PORT=3000 -e ENV=dev ... dissonance
In your Terminal or Command Prompt, run the following at the root of the project directory:
$ ./node_modules/.bin/eslint . --fix