Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sangqle/apollo-server-sample
Some basic configuration for apollo-server with prisma and posgresql database
https://github.com/sangqle/apollo-server-sample
apollo-server graphql javascript postgresql prisma sample-code
Last synced: 19 days ago
JSON representation
Some basic configuration for apollo-server with prisma and posgresql database
- Host: GitHub
- URL: https://github.com/sangqle/apollo-server-sample
- Owner: sangqle
- Created: 2019-07-26T16:11:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T23:46:18.000Z (about 2 years ago)
- Last Synced: 2024-10-28T17:23:18.634Z (2 months ago)
- Topics: apollo-server, graphql, javascript, postgresql, prisma, sample-code
- Language: JavaScript
- Homepage:
- Size: 906 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**This is sample config Gaphql API with apollo-server**
How to run ?
```bash
$ git clone https://github.com/littlemonster00/apollo-server-sample.git
$ yarn```
Run prisma server and postgres database via docker
```bash
$ docker-compose up
$ yarn deploy
$ yarn start
```You can access prisma API server via: http://localhost:4466/server/dev
You can visualization data of postgres db via: http://localhost:4466/server/dev/_admin
## Environments
This Compose file contains the following environment variables:* `POSTGRES_USER` the default value is **postgres**
* `POSTGRES_PASSWORD` the default value is **changeme**
* `PGADMIN_PORT` the default value is **5050**
* `PGADMIN_DEFAULT_EMAIL` the default value is **[email protected]**
* `PGADMIN_DEFAULT_PASSWORD` the default value is **admin**## Access to postgres:
* `localhost:5432`
* **Username:** postgres (as a default)
* **Password:** changeme (as a default)## Access to PgAdmin:
* **URL:** `http://localhost:5050`
* **Username:** [email protected] (as a default)
* **Password:** admin (as a default)