@intouchg/fastify

Starter template for NodeJS Fastify server

Usage no npm install needed!

<script type="module">
  import intouchgFastify from 'https://cdn.skypack.dev/@intouchg/fastify';
</script>

README

@intouchg/fastify

Starter template for NodeJS Fastify server

Creating a new project

  1. Clone the starter repo, renaming it according to your new project
git clone https://intazdoweb.intouchsol.com/IntouchDesignSystem/IntouchDesignSystem/_git/fastify NEW_PROJECT_FOLDER_NAME
  1. Navigate into the new project folder and delete the existing git repo
cd NEW_PROJECT_FOLDER_NAME && rm -rf .git
  1. Update the package.json name, description, and repository fields

  2. Install dependencies to generate the yarn.lock file

yarn
  1. Initialize a new git repo and create the initial commit
git init && git add . && git commit -m 'Initial commit'
  1. Add your new project's git repo url as the git remote
git remote add origin NEW_PROJECT_GIT_REPO_URL
  1. Finished! Push your code to the repo
git push origin master

Developing a project

  1. Navigate into the project directory
cd MY_PROJECT_NAME
  1. Run the dev server
yarn dev
  1. Or build for production
yarn build