Giter VIP home page Giter VIP logo

unihive's Introduction

first_group_project

PLEASE FOLLOW THIS GIT BRANCHING STRATEGY BEFORE ANY COMMIT!!!!!!!: https://www.abtasty.com/blog/git-branching-strategies/

Team Project dependencies

NPM GLOBAL INSTALLS

Run terminal as administrator (if on Windows) Otherwise, add 'sudo' before each install (Mac, Linux)

npm install -g nodemon
npm install -g db-migrate
npm install -g db-migrate-pg
npm update -g npm

COMMANDS TO RUN AFTER GLOBAL INSTALLS

cd server
npm install
cd ..
cd client
npm install

START the servers:

cd server
npm start
cd ..
cd client
npm start

If there are any errors whatsapp me, there shouldn't be.

POSTGRES DATABASE SETUP

run the psql script, login with your postgres account(copy what parameters it tells u to write) once logged in, enter the following commands:

CREATE USER unihive WITH PASSWORD 'unihiveftw';
\du

The user unihive should pop up next to postgres, however, it has no permissions. Let's give it superuser permissions.

ALTER USER unihive SUPERUSER;
\du

unihive user should now have superuser permissions. We will now switch to the unihive user and create the database

SET ROLE unihive;
CREATE DATABASE unihive;
\l

You should now see a new database 'unihive', with the owner being 'unihive', as opposed to postgres

COMMANDS TO RUN AFTER SETTING UP THE DATABASE

Now it's time to create the tables in the database. open a terminal and run the following command:

cd server
npm run create-db

To insert dummy data into the database, run the following command:

cd server
npm run insert-data

To delete the tables (if need be at any point), run the following command:

cd server
npm run drop-db

SET UP ENVIRONMENT VARIABLES

Now that the database is set up and created on the local machine, let's set up the environment variables. Check .env.example file in both client and server. Copy what is in .env.example, then in the same directory create a .env file. Paste the example variables into the .env. You can leave the SESSION and the JWT variables the example variables while testing. But in production build we will need to provide the app cryptographically random keys for those variables.

Integrate with your tools

Collaborate with your team

Test and Deploy

Use the built-in continuous integration in GitLab.


Name

First Year Team Project

Description

Our first year team project for the University of Manchester.

Support

Contact @criseda or leave an issue on the repo.

Project status

Completed (Minor Updates Ongoing)

unihive's People

Contributors

criseda avatar a38062an avatar irql avatar alexmote04 avatar

Stargazers

 avatar

Watchers

 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.