benawad / slack-clone-server Goto Github PK
View Code? Open in Web Editor NEWThe backend for a Slack clone using React and GraphQL
The backend for a Slack clone using React and GraphQL
I am not able to setup my backend with ngnix.
I am using the same commands in docker-comppose.yml and mysite.template as shown in video
docker-compose.yml
version: '3'
services:
redis:
image: redis
networks:
- webnet
db:
image: postgres
volumes:
- ./pgdata:/var/lib/postgresql/data
networks:
- webnet
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: slack
ports:
- '3030:5432'
web:
image: slack-clone-server
networks:
- webnet
environment:
DB_HOST: db
REDIS_HOST: redis
depends_on:
- db
- redis
command: ['node', 'app.js']
nginx:
image: nginx
volumes:
- ./mysite.template:/etc/nginx/conf.d/mysite.template
ports:
- '8081:80'
networks:
- webnet
depends_on:
- web
command: /bin/bash -c "envsubst < /etc/nginx/conf.d/mysite.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
networks:
webnet:
AND mysite.template
server {
location / {
proxy_pass http://web:8081;
}
}
I am getting ERROR : cat: /etc/nginx/conf.d/mysite.template: Is a directory
server_nginx_1 exited with code 1
Please help me anyone
Uh?
Thanks for your work, when study with your project, I get stuck and then I find there was little error in project.
where the findAll syntax is an error, which should be:
findAll({where: {owner: user.id}}) // return all teams belong to the user
findAll({owner: user.id}) // return all teams in the team table, but not filter for the user
But in next chapter, I find the where
comes. ๐ , the issue should be closed. ๐คฃ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.