apollo-typescript-starter
apollo-typescript-starter copied to clipboard
🚀 Starter project to get up and running with Apollo Server, GraphQL, Typescript and Postgres.
🚀 Apollo Typescript Starter
Boilerplate project to get up and running with Apollo Server, GraphQL, Typescript and Postgres.
Getting Started
-
Download & Install Dependencies
# clone it $ git clone [email protected]:kylealwyn/apollo-typescript-starter.git $ cd apollo-typescript-starter # Make it your own $ rm -rf .git && git init # Install dependencies $ npm install -
Next, ensure your local Postgres database is up and running. Once configured, place your connection url in a
.envfile at the root of the repo. These variables will be automatically assigned to process.env when the application boots through dotenv. Your .env file should look something like this:DATABASE_URL=postgres://localhost/books -
Boot the app and navigate to localhost:3000/graphiql to run a query!
$ npm start