Skip to content

gual/pennywise_store

Repository files navigation

Pennywise Store

a Snack Store on Sails v1 application.

Requirements

  • Node v8.4
  • SailsJS v1.0.1
  • PostgreSQL v9.4
  • MongoDB v3.4 (For sessions)

Backup

  1. Create a Database on PostgreSQL.
  2. Restore store_backup.sql located at the project root directory.

Example using pgAdmin4

  1. Right click on created database and select Restore… option.
  2. Select the backup file. Select backup file
  3. Enable the following options: Pre-data, Data, Post-data. Click the Restore button. Enable options

Installing

$ npm install [email protected] -g
$ npm install

Running

$ DATABASE_URL='postgresql://user:pass@host:port/db' MONGODB_URI='mongodb://user:pass@host/db' sails lift

Example

DATABASE_URL='postgresql://app_user:app_pass@localhost:5432/store' MONGODB_URI='mongodb://hero4:[email protected]:153/store_453'sails lift

Frontend

It has a small setup for login and signup.

Postman

A collection of requests and variables for POSTMAN is included in requirements.postman_collection.json file located at the project root directory. The Request CSRF Token should be sent first in order to adquire the CSRF token for the next requests. Postman

Version info

This app was originally generated on Wed May 02 2018 15:01:34 GMT-0600 (CST) using Sails v1.0.1.

About

A Snack Store on Sails v1 application.

Resources

Stars

Watchers

Forks

Packages

No packages published