Giter Club home page Giter Club logo

sciencemotions-rails's Introduction

README

You should have installed

create postgres user createuser --interactive --pwprompt with password: password and username postgres

To run the project:

  1. git clone [email protected]:JessicaML/ScienceMotions-rails.git
  2. cd ScienceMotions-rails
  3. yarn && bundle install
  4. rake db:create
  5. rake db:migrate
  6. open bin/webpack-dev-server in one tab
  7. and bin/rails s in another tab

if you are having problems creating the db, try

  • rake db:reset
  • rake db:create
  • rake db:migrate

Live site: http://www.sciencemotions.com/

Support us on Patreon!

We love you!! <3 https://www.patreon.com/ScienceMotions

sciencemotions-rails's People

Contributors

alineribeiro avatar anneeckersberg avatar dependabot[bot] avatar jessicaml avatar paarmita avatar s-warmenhoven avatar tob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sciencemotions-rails's Issues

2 suggestions

1- use gitx(http://gitx.frim.nl/) and make your git commits selectively from now on.

2- put more db constraints to your database: unique combi index on [completed_lessons. lesson_id, completed_lessons. user_id] more null constraints etc. More constraints you have in your database, better it is. You can also view/analyse your schema via:

$ psql your_database_name

then \q to quit, \d+ to see all your tables, \d+ table_name to see details of a specific table and you can write SQL statements in that psql session then end them with ; and enter to execute.

Authentication not working

When I tried to log in the application then I was not been able to authenticate myself and an error popped up.

For more information on the error please see attached screenshot.
screenshot from 2018-04-17 16-51-59

post user.id to the completed_lessons model

Right now the user can create a lesson, but the completed-lessons needs the current user_id passed in.

If user_id is set to optional => true (required field), it is possible to post a completed_lesson with the lesson_id, but the user_id also needs to be posted.

reduce file size of these

media/images/jerome-b41e2386.png 416 KiB
media/images/katrina-71f953ac.png 597 KiB
media/images/kyle-c10e3f9d.png 306 KiB
media/images/marie-1aa0dbbe.png 561 KiB
media/images/neer-a59861dd.png 544 KiB
media/images/sound-845c936e.gif

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.