Skip to content

eduard-kirilov/node-ts-apollo-auth-starter

Repository files navigation

Node, TS, Apollo, Auth, - Starter

nodejs typescriptlang apollographql graphql mongodb

🚀 Quick start

  1. You need to install dependencies.

    You can use yarn or npm.

    # install dependencies
    yarn
    # or
    npm install
  2. Create the .env.development and .env.production

    Create the .env file from the .env.example file. Description of environment variables:

    • DB_HOST - you mongo database url;
    • PORT - your port on which the api will work.
  3. Start the project.

    You can start a project using yarn or npm.

    # install dependencies
    yarn start
    # or
    npm run start

    Once launched, the server will be available on https://localhost:${PORT}!

    _You will also see a second link: https://localhost:${PORT}/graphqll. This is a tool that you can use to experiment with requesting your data.

🧐 What's inside?

A quick look at the top-level files and directories you'll see in a this project.

.
├── src
├──/──models
├──/──resolvers
├──/──shema
├──/──utils
├──/──index.ts
├── .dockerignore
├── .env
├── .eslintrc.js
├── .gitignore
├── .huskyrc.js
├── .prettierrc
├── Dockerfile
├── LICENSE
├── README.md
├── babel.config.js
├── nodemon.json
├── package.json
└── tsconfig.json