This project is a workflow generator for fetching and filtering data from the Star Wars API (SWAPI). It is built using Typescript, Next.js, Nx, and Temporal.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them:
- Node.js and npm: Download and install from Node.js official website.
- Nx CLI: Install it globally using npm:
npm install -g nx
. - Temporal: Follow the instructions on the Temporal official website to install Temporal.
- An IDE like Visual Studio Code.
A step by step series of examples that tell you how to get a development environment running:
- Clone the repository:
git clone https://github.com/davemeehan/SWAPI-Temporal
. - Navigate into the cloned repository:
cd SWAPI-Temporal
. - Install the dependencies:
npm install
.
To run all services, use:
make # linux
make -j all # osx
To start the Temporal dev server, run the following command:
npx nx temporal:server
To start the worker, use:
npx nx temporal:worker
To open the Temporal UI, use:
npx nx temporal:ui
To start the Next.js app, use:
npx nx serve swapi-next
To start EnvyJs, use:
npx nx envy
Open your browser and navigate to http://localhost:4200