Coder Social home page Coder Social logo

loyalty-web's Introduction

Loyalty-web

Getting started

Please note: These instructions apply to running both loyalty-web and loyalty-app together. Loyalty-app can be found at: https://github.com/Kauri-2018/loyalty-app

*You will need Expo on your device: https://expo.io/

Loyalty-web

Use the development branch

  1. Open loyalty-web in VS Code / code edtior of your choice
  2. Check what branch you are on and stage all of your changes if applicable
  3. Checkout development:
  • git checkout development
  1. Pull down any chages:
  • git pull origin development
  1. Intall dependencies as needed: -yarn

Set up the environment

  1. Set up the database:
  • yarn knex migrate:rollback
  • yarn knex migrate:latest
  • yarn knex seed:run
  1. Check the .env file:
  • there should be a JWT_SECRET and a PASSCODE in the file
  • if not, you can add them or make a file with them inside
  1. Check that the database has seeds in each of the tables:
  • users
  • profiles
  • visits
  1. Start the server with:
  • yarn dev
  1. Visit your localhost and ensure that you can login: if so, the server side is ready!

Loyalty-app

Use the development branch

  1. Repeat steps 1 - 5 used in loyalty-web

Check IP address

  1. Check apiClient and change the API calls to your own IP address in each of the four functions:
  • loginUser
  • getUser
  • checkinUser
  • getUserHistory

*Make sure you've saved those changes!

Run the app

  1. npm run start
  2. If using iOS: send an email using the s hotkey or Share, then follow the link from your device
  3. If using Android: scan the QR code in the terminal from within the Projects tab in Expo

Making changes

  1. You can now make a branch and start coding:
  • git checkout -b <YourBranchNameHere>

Pages

  • Home(/)
  • Adminlogin(/adminlogin)
  • Adminregister(/adminregister)
  • UserRegister(/userRegister)
  • Admin profile(/profile)
  • Statistics(/profile/statistics)
  • Add new user(/profile/new)

loyalty-web's People

Contributors

frankxuzy avatar zoeiml avatar mayur-rana avatar sarah-mclaughlin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.