-
Download & Install Dependencies
# clone it $ git clone $ 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
.env
file 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://user@host/database
-
Use knex to migrate the database using the migrations
# Install knex globally if you don't already have it with 'npm install -g knex' $ knex migrate:latest # Use knex migrate:rollback to
-
Boot the app and navigate to localhost:3000/graphiql to run a query!
$ npm start
-
Notifications
You must be signed in to change notification settings - Fork 0
RossmacD/TS-GQL-API
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A graphQL API written in typescript.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published