Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amen-souissi/e2e-web-app-tutorial

end 2 end web app tutorla
https://github.com/amen-souissi/e2e-web-app-tutorial

apollo apollo-client apollo-server-express docker docker-compose expo graphql material-ui postgresql react-native reactjs redux smashtest subscriptions tutorial type-graphql typescript websocket

Last synced: about 2 months ago
JSON representation

end 2 end web app tutorla

Awesome Lists containing this project

README

        

# Linux Docker permission

```bash
sudo groupadd docker
sudo usermod -aG docker \$USER
sudo setenforce 0
```

# Bulid dev

```bash
sudo docker-compose build
cd bff
npm ci
cd ../front
npm ci
cd ..
sudo docker-compose -f docker-compose.yml up
```

🚀 Server ready at http://localhost:3000

# Local network Linux

```bash
ifconfig -a // in the .env file => replace 127.0.0.1 by ex: 192.168.1.XX
sudo docker-compose -f docker-compose.yml up
```

# Remove

```bash
docker-compose down -v
```

# Start postgres

```bash
docker exec -it postgres psql -U
```

# Dump DB

```bash
docker ps // postgres
docker exec pg_dump -U > dump\_`date +%d-%m-%Y*%H-%M-%S`.sql
```

# Restor DB

```bash
docker ps // postgres
docker exec pg_restor -U -d < .sql
```