• Home
  • Why Erstwhile?
  • Getting Started
  • Learn Erstwhile
  • API Docs
  • Home
  • Why Erstwhile?
  • Getting Started
  • Learn Erstwhile
  • API Docs
  • Create a Project from Scratch
  • Install the Todos Test Application
    • Backend Install
    • Frontend Install
    • Navigating Around the App

Backend Install

7 views 0

Written by mike
July 30, 2023

First let’s get the backend from Github and get it installed:

# clone application into directory
git clone git@github.com:RestlessDev/todos_application_backend.git todos_backend

# enter the directory
cd todos_backend

# npm install
npm install

# copy the .env template
cp .env.template .env

A this point you’ll need to go to your PostgreSQL tool of choice; we recommend the PGAdmin.

You’ll need to complete the following steps:

  1. Create a new database. We call ours todos.
  2. Create a new user with all the permissions on that new database. We call ours todos_user. Choose a good password for this user.
  3. Run the script located in <projectroot>/sql/todos.sql to create the tables.

Now you’ll need to update the .env file you just created with your new database parameters.

# database
RESTPGORM_DB_HOST=<your host name>
RESTPGORM_DB_PORT=5432
RESTPGORM_DB_USERNAME=<your user name>
RESTPGORM_DB_PASSWORD=<your password>
RESTPGORM_DB_NAME=<your database name>

If this has all worked successfully, you should be able to launch the server with the following command:

# start server
npm run start

The server will be running at port 8022 by default.

Was this helpful?

Yes  No
Related Articles
  • Navigating Around the App
  • Frontend Install
  • Install the Todos Test Application
  • Create a Project from Scratch

Didn't find your answer? Contact Us

Previously
Install the Todos Test Application
Up Next
Frontend Install

loader

Join our Mailing List     

  • Privacy Policy
  • Terms of Use
  • © 2025 RestlessDev. Made in New Orleans.

Welcome to Erstwhile

Thank you for checking out Erstwhile. We’re just getting started, so if you’d like to keep up with our progress please register now and we’ll let you know when new releases come out.

loader

Email Address*

Name