Skip to content

Todo List API - RESTful API built with Node.js, Express.js, and TypeScript for managing tasks. This API communicates with a PostgreSQL database and serves as a backend for the ToDo List Client, a web application built with React and TypeScript for managing tasks.

License

Notifications You must be signed in to change notification settings

piotr-pajak/todo-list-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToDo List API

ToDo List API is a Node.js server application built with Express.js and TypeScript, using a PostgreSQL database. It serves as a backend for managing tasks in my ToDo List Client web application.

To install the application, follow the steps below:

Installation using Yarn

  1. clone the ToDo List API repository using the git clone https://github.com/mGlok/todo-list-api command.
  2. navigate to the application directory using the cd todo-list-api command.
  3. install the required dependencies by running the yarn command.

After installation, compile the application by running the yarn build command and start the server using the yarn start command.

Installation using npm

  1. clone the ToDo List API repository using the git clone https://github.com/mGlok/todo-list-api command.
  2. navigate to the application directory using the cd todo-list-api command.
  3. install the required dependencies by running the npm install command.

After installation, compile the application by running the npm run build command and start the server using the npm run start command.

Database setup

  1. Create a new database named todolist:
CREATE DATABASE todolist;
  1. List all available databases:
\l
  1. Switch connection to the new database:
\c todolist;.
  1. Create a new table named todos with columns id, todo, and finished, using the command:
CREATE TABLE todos (
  id SERIAL PRIMARY KEY,
  todo VARCHAR(255),
  finished boolean
);
  1. Finally, you can insert some data into the todos table using the command:
INSERT INTO todos (todo, finished)
  VALUES ('sample todo content', false),
  ('second sample todo content', false),
  ('third sample todo content', false);

If you have any questions or suggestions for the project, feel free to get in touch with me.

Thank you for using my ToDo List Client and ToDo List API!

About

Todo List API - RESTful API built with Node.js, Express.js, and TypeScript for managing tasks. This API communicates with a PostgreSQL database and serves as a backend for the ToDo List Client, a web application built with React and TypeScript for managing tasks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published