Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/SarasArya/fastify-starter-project

A starter project for fastify. Blazingly fast. Comes quipped with integration with eslint, prettier, husky. With dev build support.
https://github.com/SarasArya/fastify-starter-project

Last synced: about 2 months ago
JSON representation

A starter project for fastify. Blazingly fast. Comes quipped with integration with eslint, prettier, husky. With dev build support.

Awesome Lists containing this project

README

        

**Fastify Starter Kit**

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

Backend written in Javascript with ♥️.
Powered by Fastify for Minimal Overhead and Max Performance 🚀
DB Powered by MongoDb 🍃 and ORM is Mongoose 🐻

A minimal project written to showcase concepts of fastify. Plugins, Models, Controllers, all essentials you will need to write a sufficiently complex backend.

**To Start**

1. Make sure you have yarn installed. After that just do `yarn` or `npm install`.
2. Make sure you have mongodb server running. If you are like me you have everything dockerized. In case you dont.
a. In case you dont have docker installed. Head [here](https://docs.docker.com/install/)
b. Check if you have docker daemon running using docker -v.
c. If no, google error, If yes run docker pull mongo:3.4.0.
d. docker run --name my-mongo -d -p 27017:27017 mongo:3.4.0
e. And you have a mongo server running.

3. If developing run `yarn dev:start`.
4. If running in to develop frontend `yarn start`.
5. Voila you have your new shiny fastify ⚡️ project running. You should be listening at port 3000.