This is sample config Gaphql API with apollo-server
How to run ?
$ git clone https://github.com/littlemonster00/apollo-server-sample.git
$ yarn
Run prisma server and postgres database via docker
$ 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
This Compose file contains the following environment variables:
POSTGRES_USER
the default value is postgresPOSTGRES_PASSWORD
the default value is changemePGADMIN_PORT
the default value is 5050PGADMIN_DEFAULT_EMAIL
the default value is [email protected]PGADMIN_DEFAULT_PASSWORD
the default value is admin
localhost:5432
- Username: postgres (as a default)
- Password: changeme (as a default)
- URL:
http://localhost:5050
- Username: [email protected] (as a default)
- Password: admin (as a default)