Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OtmaroE/notes-api

Repository files navigation

notes-api

API to keep and organize user's notes.

This is an educational API.
Use and run this API to learn about API design, documentation and local development setup.
If you wish, you can also deploy this API on a private server or build a UI for it.

Table of content

  1. Stack
  2. Run
    1. Run manually
      1. Migrate database
      2. Seed database
    2. Run with docker

Stack

  • Node.js.
    • Version 16.4.2 is used as it is current LTS.
    • Node 16.4.2 comes with npm version 7.18.1
  • Postgres.
    • Version 10, the oldest version with pending minor releases as of 2022.
  • Docker
  • Docker-compose

Run:

Run manually

A .vscode configuration has been pre-defined to facilitate development using VSCode. However, the following structions are software agnostic.

Install dependencies

npm install 

Start server

node sever

Start server - Development

nodemon server/

Migrate the database

On ./server/database/ inside the container run:

npm run db:migrate

Seed the database

On ./server/database/ inside the container run:

npm run db:seed

Run with docker:

docker-compose up

About

API to keep and organize user's notes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •