A training lite back-end for the Task Manager project (similar to Trello).
- Clone the repository:
git clone https://github.com/rubanik00/task-manager.git
- Install dependencies:
yarn
OR
npm install
- Set up the
.env
file:
Create a .env
file in the project's root directory and specify your JWT secret key:
JWT_SECRET=your_secret_key
SALT_ROUNDS=your_salt_rounds
To create the database, run the following command:
-
Run postgresql server on port
5433
. -
Create a database:
npm run create-db
To start the server, run the following command:
npm start
The server will be running on port 3005.
-
/
: Returns "Hello, world" to check the server's functionality. -
/tasks
: Retrieves a list of tasks for authenticated users. -
/register
: Registers a new user. -
/login
: Authenticates a user. -
/create
: Creates a new task. -
/edit/:id
: Edits a task. -
/delete/:taskId
: Deletes a task.