Skip to content

Server-Side for nSpired App - using Express/Knex/PostgreSQL/Node

Notifications You must be signed in to change notification settings

jenna-chestnut/nspired-server

Repository files navigation

nSpired Server

Create goals. Meet them. Share your wins.


nSpired was created to offer a platform specifically to meeting goals independently, while connecting and sharing with others who want to achieve the same.

Science has proven time and time again that by surrounding yourself with others who have the same goals as you, you:

  • are held accountable to a new standard
  • can motivate others with your progress
  • can gain insight from others who are further along in their progress
  • may discover new goals that you would like to meet along the way

Tech stack

This server-side app was created with:
Visual Studio Code JavaScript NodeJS ExpressJS Heroku Git GitHub



Endpoints Tree

App🔻

MiddleWare Used🔻
➖➖Auth-Router w JWT
➖➖Check for Goal Function ➖➖Advice Prep Function
➖➖Check for User Info

Routes🔻
BASE URL: /api

➖➖*/win-wall* ➖➖➖*/win-wall/mini*
(GET)

➖➖*/advice/:goalId* (GET, POST, DELETE)

➖➖*/goals*
➖➖➖*/goals/:goalId*
(GET, POST, DELETE, PATCH)

➖➖*/upvotes/:goalId*
(GET, POST, DELETE)

➖➖*/auth/login*
➖➖*/auth/delete*
➖➖*/auth/register*
(POST, DELETE)


Available Scripts

In the project directory, you can run:

npm start

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.

npm run dev

Runs the app through a development server.

npm run migrate

Migrate tables in local database

npm run migrate:test

Migrate tables in local test database

heroku create to create remote server (will need heroku account - see this link for info https://devcenter.heroku.com/categories/command-line)
npm run deploy to:

  • Run NPM audit
  • Migrate tables in production server
  • Push latest commit to Heroku main branch of created app

About

Server-Side for nSpired App - using Express/Knex/PostgreSQL/Node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published