Skip to content

A social shopping app that recommends curated items and reminds you of your friends' birthdays.

Notifications You must be signed in to change notification settings

momentmuse/shoppit_server

 
 

Repository files navigation

Shoppit - Server

Express server to compute and store data in a PostgreSQL database, providing services to our Shoppit mobile app.

Shoppit is a social shopping app.

Spend a few minutes discovering your personalized, curated products. Buy something nice for yourself or a friend--never forget a birthday again!

Table of contents

Screenshots

After connecting the app with Facebook, Shoppit will automatically detect a few categories you'll like and save them to your profile. If your recommendations feel a bit stale, you can customize your them at any time by saving whatever categories interest you. Tap on the home screen again to see your dynamically-updated item feed. Find something you like? Swipe right to save it on your profile!

Connect to your friends without the hassle! Your friends list is automatically generated from your Facebook connections. Make sure you never forget a birthday again by tapping the bell icon next to a friend's name to subscribe to notifications. Need to get a friend something special? Simply browse their recently liked items on their profile. Just check out an item on their profile to find out more info, and once you find a match, buy it from Amazon directly within the app!

Motivation

We wanted to make an app that would make shopping on your phone social and fun.

We have all forgotten a friend or family member's birthday in the past, so we wanted an easy way we could check and get notified of upcoming birthdays AND buy them something they actually wanted!

Getting started

A few things you have to take in consideration before using Shoppit - Server

You'll need to install the Shoppit server first, and then set up the Shoppit client to view the app in an emulator. More on that below.

After cloning the Shoppit - Server repo you'll have to :

Install global and local dependancies:

Migrate and connect Postgres database

Install PostgreSQL on your machine:

brew install postgres

Access PostgresSQL command line on the default database "postgres":

psql postgres

Your bash should now look like this:

psql (10.5)
Type "help" for help.

postgres=#

Now create a new database for the current user and connect it:

postgres=# CREATE DATABASE shoppit;
postgres=# \c shoppit;

The result will be:

You are now connected to database "shoppit" as user <user-name>.
shoppit=#

Now set a password for the current user:

shoppit=# ALTER USER <user_name> WITH PASSWORD 'new_password';

Always remember the semicolon or the syntax will not work.

Now your database setup is finished and you are ready to connect it with the server.

You can change the port or database name on postgres configuration database.

If you would like to use other SQL database you should just configure it in config/config.json.

Finally, migrate the database on your local machine:

cd shoppit_server
npm run recreateDb

Usage

Start the server:

cd shoppit_server
npm start

To run the application, go to the Shoppit client repo and follow the steps there to get the app up and running with the iOS simulator!

Tech Stack

Back-end

Front-end: shoppit_client

Developer team

About

A social shopping app that recommends curated items and reminds you of your friends' birthdays.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%