http://joli-monsieur-61212.herokuapp.com/
- Unit Tests and add Mocha for conditionsForLikesAndHates etc...
- Instanbul for code coverage
- Better naming to routes, variables, methods
- Change for loops to checkUserAndMovie to keys [0] and from checkLikesAndHatesFromDb
- Add jsdoc
You must have Name and Public email, you can check it here https://github.com/settings/profile otherwise you will not be able to signup/login
- Clone the repository from your github client from https://github.com/Ierofantis/MovieRama.git or from ssh git@github.com:Ierofantis/MovieRama.git
- You will need node js installed on your machine https://nodejs.org/en/download
- You will need postgress DB also https://www.postgresql.org/download/
- You will need to create a connection with host, user, password and db
- The default port is 5432
- Also create from there https://github.com/settings/developers a new oauth app
- After you finish with these steps create a clone of env.example without the example extension
- Open your command line tool (cmd,iterm etc.) and navigate to the project
- Type
npm install
- After that type
npx sequelize-cli db:migrate
- Now you are ready to type
node server
- When the server starts creates some records (for represent the different users)
And that's it
As a vistor:
- You can see the movies (Title,Description,Author,Date,likes,dislikes)
- You can sort by likes,dislikes,date
- Github signup/login ( You must have Name and Public email, you can check it here https://github.com/settings/profile otherwise you will not be able to signup/login )
As a registered user:
- Add movie
- Like or Dislike movies (not your own)
- View all movies submitted by a specific user
I am using ejs template engine and after some actions you have to refresh the page to see the changed behavior
© Theodore P. 2020