Skip to content

shawki2/orula2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

479 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

orula

Glasgow Graduation Project - Learning Platform

Get started

  1. Go to top level folder, and run npm install
  2. Go to top level folder, and run npm start
  3. Go to top level folder, and run npm run lint
    • In order to fix errors, run npm run fix-lint

Workflow

Our workflow is a variation of Gitflow

  1. Pick an issue from Github (assign it to yourself and make sure there is enough description)

  2. Locally, switch to master, then git pull upstream master. NOTE: If you get a merge message, that means you made a mistake and you worked on master by accident. Clean your master (i.e. git reset --hard previous_commit - ask a mentor to help)

  3. Create a branch based on the story git checkout -b feature-title.

If you're working on a feature for adding a student, then name the branch add-student for example.

  1. Work on the branch (add, commit and push)

  2. Create a Pull Request when you are finished.

  3. Repeat.

Database

The first time you create the database, you will need to run these commands (three of them separately) in postgres

DROP ROLE IF EXISTS cyf;
CREATE USER cyf WITH PASSWORD 'password';
CREATE DATABASE orula OWNER cyf;

Migrations

We use knex for migrations, but we created alias helpers on package.json to make it easier to run the commands.

knex

  1. Create a migration npm run create-migration table_name
  2. Create a seed npm run create-seed table_name

Recrete DB

From psql:

  • /c postgres
  • CREATE DATABASE orula OWNER cyf;

if it complains that there are active connections then run:

SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'orula'

About

Glasgow Graduation Project - Learning Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors