https://github.com/kylealwyn/apollo-typescript-starter
🚀 Starter project to get up and running with Apollo Server, GraphQL, Typescript and Postgres.
https://github.com/kylealwyn/apollo-typescript-starter
apollo-server graphql postgresql typescript
Last synced: about 1 year ago
JSON representation
🚀 Starter project to get up and running with Apollo Server, GraphQL, Typescript and Postgres.
- Host: GitHub
- URL: https://github.com/kylealwyn/apollo-typescript-starter
- Owner: kylealwyn
- License: mit
- Created: 2018-01-29T06:10:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-08T06:05:42.000Z (over 7 years ago)
- Last Synced: 2025-04-26T10:58:10.503Z (about 1 year ago)
- Topics: apollo-server, graphql, postgresql, typescript
- Language: TypeScript
- Homepage:
- Size: 173 KB
- Stars: 18
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
🚀 Apollo Typescript Starter
Boilerplate project to get up and running with Apollo Server, GraphQL, Typescript and Postgres.
## Getting Started
1. Download & Install Dependencies
```sh
# clone it
$ git clone git@github.com:kylealwyn/apollo-typescript-starter.git
$ cd apollo-typescript-starter
# Make it your own
$ rm -rf .git && git init
# Install dependencies
$ npm install
```
1. Next, ensure your local Postgres database is up and running. Once configured, place your connection url in a `.env` file at the root of the repo. These variables will be automatically assigned to process.env when the application boots through [dotenv](https://github.com/motdotla/dotenv). Your .env file should look something like this:
```
DATABASE_URL=postgres://localhost/books
```
2. Boot the app and navigate to localhost:3000/graphiql to run a query!
```sh
$ npm start
```
## Resources
- [Apollo Server](https://www.apollographql.com/)
- [GraphQL](https://graphql.org/)