Skip to content

Enamulali/quicknotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Notes App - EA

This is a full stack application for jotting down quick notes.

The REST API is built using Node.js/Express and the client-side with React. Follow the simple steps below to get up and running.


Usage

Install Dependencies

Install the dependencies required for the project. The client folder contains the dependencies for the front-end.

npm install
cd client
npm install
cd ..

Environment Variables

Create an env file and specify the database.

echo 'PGDATABASE=quick_notes' > ./.env

Ensure the env file is created in the root folder quicknotes and not in the client folder.

Seeding

Populate the database using

npm run setup-dbs

Back-end/Express Server

npm start

The API can be accessed at http://localhost:9090


Front-end/React

Open a new terminal to open the front-end application server alongside the back-end.

cd client
npm start

Visit http://localhost:3000


REST Endpoints

Ideas

Endpoint Description Method Body
/api/notes Get all Notes GET None
/api/notes/:id Get note by id GET None
/api/notes Add note POST { note, date, tag }
/api/notes/:id Update note PUT { note, date, tag }
/api/notes/:id Delete note DELETE None

About

A quick notes app optimised for desktop. EA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors