Niyo Task is a simple task management app that requires authentication functionality and a socket to stream the data created In real-time. This is needed as we need to monitor real-time updates and personalized task management.
This project was designed using NestJS
as a framework and TypeScript
as a Language PostgreSQL
for the database
and TypeORM
as the ORM.
Before cloning the repo, ensure that your system meets the following requirements:
- NodeJS installed on your laptop
To test the API, you need the below installed on your laptop
- Postman
To run the application, kindly visit the repo https://github.com/kelrob/hello-niyo and clone the application into your machine.
-
Create a
.env
file in the root directory of the cloned application -
Copy the content of the
.env.example
file into the newly created.env
file. -
Provide the values for each of the variables in your
.env
file -
Run the following command in the root directory
npm install
-
The application will be installed in your system locally and ready to run
-
Now run the command below to start the application
npm run start:dev
-
To run the test you can run (Optional)
npm run test
-
Your application should start running on
localhost:${PORT}
PORT = value defined in your PORT
.env
file.
This app is also containerized via docker. To run this application on your local device via Docker, ensure you have Docker installed.
-
Create a
.env
file in the root directory of the cloned application -
Copy the content of the
.env.example
file into the newly created.env
file. -
Provide the values for each of the variables in your
.env
file -
Run the following command in the root directory
docker-compose build --no-cache
-
Now run the command below to start the spin up the containers
docker-compose up -d
-
Your application should start running on
localhost:3000
- The application has already been set up online so you do not need to do anything to set it up online.
The app is running on https://robert-hello-niyo-production.up.railway.app/api/v1/
Once a new task is created, using the base url above, you can view the stream in real-time here https://hello-niyo-websocket.vercel.app/ - Sample Below
You can view the documentation via https://documenter.getpostman.com/view/26868191/2sA3JT3yHh