Giter Club home page Giter Club logo

cs2102-t10's Introduction

Build Status

CS2102 Project Team 30

Description

This application is for a food delivery service (FDS). Our application uses React.js, Node.js, Express.js and PostgreSQL.

Running the Application

  1. Ensure that you have the latest version of NodeJS from https://nodejs.org/en/
  2. Ensure that you have the latest version of PostgreSQL from https://www.postgresql.org/
    1. You should also install psql, an interactive terminal for PostgreSQL
  3. Download the source code.
  4. Launch psql and initialize a new PostgreSQL database called ‘cs2102’ with the following configuration:
    1. Ensure that your username is ‘postgres’
    2. Ensure that your password is blank. This can be set using the guide from https://dba.stackexchange.com/a/14741/206509
      1. Set the PGPASSWORD environment variable. For details see the manual: http://www.postgresql.org/docs/current/static/libpq-envars.html
      2. Use a .pgpass file to store the password. For details see the manual: http://www.postgresql.org/docs/current/static/libpq-pgpass.html
      3. Use "trust authentication" for that specific user: http://www.postgresql.org/docs/current/static/auth-methods.html#AUTH-TRUST
      4. Use a connection URI that contains everything: http://www.postgresql.org/docs/current/static/libpq-connect.html#AEN42532
    3. Ensure that the port number is 5432. This can be changed in the postgresql.conf file located in the PostgreSQL’s data directory (e.g. PostgreSQL/12/data)
  5. Import the init.sql file into the database located in the server/api directory. This can be done by the command ‘\i [file path of init.sql]’
  6. Open a Terminal and execute the command ‘npm install’ in the client folder directory. This will install all the required dependencies in the local node_modules directory for the client to run.
  7. Change directory to the server folder directory and execute the command ‘npm install’. This will install all the required dependencies in the local node_modules directory for the server to run.
  8. At the source code’s root directory, execute ‘npm install’.
  9. At the source code’s root directory, execute ‘npm run dev’ to launch the application. This will run both the server and React.js application.

Acknowledgements

  1. Reactstrap - Easy to use React Bootstrap 4 components
  2. react-calendar - Ultimate calendar for your React app
  3. SweetAlert - SweetAlert makes popup messages easy and pretty
  4. axios - Promise based HTTP client for the browser and node.js
  5. react-icons - Include popular icons in React projects, which utilizes ES6 imports that allows you to include only the icons that the project is using.

Project Contributors

  1. Cranston Yeo

  2. Eng Xuan En

  3. Kenny Ho

  4. Jeremy Loh

cs2102-t10's People

Contributors

jeremyloh avatar khsc96 avatar exeexe93 avatar cranstonyeo avatar

Watchers

James Cloos 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.