yinxin630 / fiora

An interesting open source chat application. Developed with node.js, mongoDB, socket.io and react
https://fiora.suisuijiang.com
MIT License
6.57k stars 1.31k forks source link

Administrator ID and Password #57

Closed sonofcrocus closed 5 years ago

sonofcrocus commented 5 years ago

Hello sir and thank you for this awesome app.

I wonder what is exactly the admin id and password or how can i access as admin to ban users.

Thank you.

yinxin630 commented 5 years ago

You should find your userId(_id) in database. Then modify this: https://github.com/yinxin630/fiora/blob/master/config/server.js#L30

sonofcrocus commented 5 years ago

@yinxin630 Thank you alot sir it worked perfectly for me and again thank you for this awesome work.

sonofcrocus commented 5 years ago

One more question if you don't mind, do you have any idea how to dockerize the app ( creating one docker image for the database and one for client interface) ?

yinxin630 commented 5 years ago

I used to make a docket image before. (https://hub.docker.com/r/suisuijiang/fiora) But it is based on the old version. I will consider updating the image later

sonofcrocus commented 5 years ago

Yes sir i'm running your awesome project locally and i'm having problems configuring Dockerfile. I'd be grateful if you share the Dockerfile config for the client and server. Thanks in advance. :D