Pinniped is an open-source backend that prioritizes being portable, extensible, and user-friendly. To learn more about Pinniped's development, read our case study here.
To create a Pinniped application the following must be installed:
- Node.js
Once Node.js is installed, you can create a Pinniped application through its CLI tool.
To install the CLI tool, you can use the built-in package manager npm
.
More information about the CLI can be found at its repository.
- Run
npm install pinniped-cli -g
.
- Go to the directory where you'd like to create your application.
- Run
pinniped create
.
If you want to add custom routes and custom event handlers, check out the main documentation here.
Once your project is created and customized to your liking, you can move the project to a VPS that you've configured and run it.
Alternatively, you can use the CLI tool to deploy it to AWS following these instructions: First, you need to set up your AWS CLI tool. The instructions can be found here.
- Run
pinniped provision
to create and run an EC2 instance. - Optional: update the variables in the given
.env
file if you want to specify the domain and port for the application to run on. - Run
pinniped deploy
to deploy your application to an EC2 instance.
After the following steps are finished, your application is deployed on an AWS EC2 instance.
To monitor the backend, go to your admin dashboard at the relative path, /_
.
If using AWS CLI deployment:
To start your application on the provisioned EC2, run pinniped start
.
Similarly, to stop your application, run pinniped stop
.
If you need to update your application, i.e., adding function handlers for custom events, then run pinniped update
to push the local changes in your project directory to the EC2's local directory.