Skip to content

bskimball/fullstack-ibm-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fullstack IBM Node Starter Template

We needed a full stack node app starter that can run specifically on the IBMi. As we evaluated options, loopback was a clear choice because it's maintained by IBM and has built-in support for the DB2 database via juggler. We also wanted to use React on the frontend, because it's widely used, has a lot of supporting libraries, and we would be able to share components with a react-native app. To provide advanced functionality for the frontend we chose next.js which provides SSR, and an excellent developer experience.

I wanted a monorepo to showcase what a fullstack Node app running on the IBMi would look like. I decided to use Yarn workspaces to create the monorepo, and keep the frontend builds separate from the backend builds. The frontend is using Chakra (pre-release at the time of this writing), for it's focus on accessibility flexibility (I also like that it took some queues from tailwind). We are also using typescript.

The app has built-in authentication, login and registration pages. We're using 2 different JWT, a long-lived http-only refresh token and a short-lived access token. It also has dockerfiles included for local development (IBM DB2 database). It also has a todo app based off the Loopback tutorial. The database tables are not included, and you will have to create them based off the models in packages/backend/models. The api is proxed through Next.js to the /api suffix, but could be easily changed to make the api api.example.com with the frontend at example.com. Both the frontend and backend can be started concurrently using the scripts in the parent directory.

Packages Included:

About

Fullstack Node App using Next.js and Loopback.js build to run on the IBM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published