Coder Social home page Coder Social logo

fastify-bookmarkly's Introduction

MIT License

fastify-bookmarkly

Table of Contents

About

fastify-bookmarkly is an example backend API using the Fastify framework, MongoDB, and a clean architecture.

Parts of the original code are from Bill Sourour's DevMastery Comments Microservice API and Clean RESTful API with Node.js.

The project is a learning repository where I explore how to code a "clean" Node API from scratch.

Built With

  • Node.js & Fastify
  • Docker & Docker Compose
  • MongoDB

Installation

Prerequisites:

1. Clone the repository:

$ git clone [email protected]:sophiabrandt/fastify-bookmarkly.git && cd fastify-bookmarkly

2. Adjust configuration

Check the config folder and change the name of variables as needed.

3. Install dependencies

$ pnpm install # or npm install

4. Use Docker and Docker Compose to spin up the Mongo Database

$ docker-compose up -d

5. Create Database schema

$ pnpm run db # or npm run db

Usage

$ pnpm run dev # or npm run dev

Visit http://localhost:3000/bookmarks with your browser.

Swagger documentation is available under http://localhost:3000/docs.

To create a production build:

$ pnpm run build # or npm run build
$ pnpm run start # or npm run start

Tests

$ pnpm run test # or npm run test

For now, the tests contain stubs, but are are already connected to MongoDB.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Copyright © 2020 Sophia Brandt
MIT Licence

Acknowledgments

fastify-bookmarkly's People

Contributors

sophiabrandt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.