在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jscomplete/graphql-in-action开源软件地址(OpenSource Url):https://github.com/jscomplete/graphql-in-action开源编程语言(OpenSource Language):JavaScript 73.9%开源软件介绍(OpenSource Introduction):GraphQL In ActionA GraphQL project with a backend component written with GraphQL-js and Apollo Server and a frontend component written in React. Branch "main" is the starting point for the GraphQL In Action book. Other branches are used to track the progress of updates throughout the book:
Install dependenciesnpm install Start databasesYou’ll need Docker Compose (which is part of Docker Desktop). Then run: npm run start-dbs This will download and start a PostgreSQL database container on port 5432 and a MongoDB container on port 27017. Both databases have some sample development data loaded in. The connection credentials for these databases are: PG_CONNECTION_STRING = "postgres://postgres:password@localhost:5432/azdev" MDB_CONNECTION_STRING = "mongodb://localhost:27017/azdev" If you already have a PostgreSQL database that you would like to use instead of the provided Docker containers, you will need to create the database schemas for the project using the Using psql: psql -d "postgres://postgres:password@localhost:5432" -c "create database azdev" psql -d "postgres://postgres:password@localhost:5432/azdev" < dev-dbs/schema.sql Using mongo: mongo mongodb://127.0.0.1:27017/ < dev-dbs/schema.mongo Run for devIn 2 different terminals: npm run api-server npm run web-server Defaults:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论