🔈 start adding send audio support to frontend

This commit is contained in:
canove
2020-07-07 12:33:08 -03:00
parent 3679c94baa
commit 87e4537ce2
16 changed files with 11676 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ const app = express();
const fileStorage = multer.diskStorage({
destination: (req, file, cb) => {
cb(null, "public");
cb(null, path.resolve(__dirname, "public"));
},
filename: (req, file, cb) => {
cb(null, new Date().getTime() + "-" + file.originalname.replace(/\s/g, ""));
@@ -40,9 +40,10 @@ app.use("/auth", AuthRoutes);
app.use(async (err, req, res, next) => {
if (process.env.NODE_ENV === "development") {
const errors = await new Youch(err, req).toJSON();
console.log(err);
return res.status(500).json(errors);
}
console.log(err);
return res.status(500).json({ error: "Internal server error" });
});

Binary file not shown.

View File

@@ -0,0 +1,23 @@
--- vm produção
MariaDB: root/nodecomplete
MariaDB: botter / 103economicros
dbName: econo_whatsbot
Libs necessárias para o Puppter no linux:
sudo apt-get install -y libgbm-dev wget unzip fontconfig locales gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils
-- configuração wsl2
https://docs.microsoft.com/pt-br/windows/wsl/wsl2-kernel
wsl --set-default-version 2
docker run --name whats_database -e MYSQL_ROOT_PASSWORD=103economicros --restart always -p 3306:3306 -d mariadb:latest
docker exec -it whats_database bash
CREATE DATABASE econo_whatsbot;
ALTER DATABASE econo_whatsbot CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
CREATE USER 'botter'@'%' IDENTIFIED BY 'botter';
GRANT ALL PRIVILEGES ON econo_whatsbot.* TO 'botter'@'%';

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.