task_1 has been implemented using React, Redux , React Router, axios with all the required functionalities. live link : https://shore-lab.github.io/countrywiki
task_2 has been implemented using html5, css3, bootstrap. live link : https://shore-lab.github.io/startup
backend tasks has been implemented using express,mongoose. It has 3 main route user , movies , actors.
returns all the users in the database. example response-
[{
username: 'username',
regDate: 'regDate',
loginTime: 'loginTime'
}]
returns a single user against provided username. example response-
{
username: 'username',
regDate: 'regDate',
loginTime: 'loginTime'
}
allows user to login and sends a jwt token, example response-
{
token:'token'
}
allows user to register and sends a jwt token. example response-
{
token:'token'
}
returns all the actors in the database. example response-
[{
name: 'name',
birthday: 'birthday',
country: 'country'
}]
will add a new actor in the database. example input-
{
name: 'name',
birthday: 'birthday',
country: 'country'
}
returns a single actor against provided id example response-
{
name: 'name',
birthday: 'birthday',
country: 'country'
}
deletes an actor from the database based on the provided id
returns all the movies in the database. example -
[{
title: 'title',
year: 'year',
rating: 'rating',
actors:[
{
name: 'name',
birthday: 'birthday',
country: 'country'
}
]
}]
will add a new movie in the database. example input-
{
title: 'title',
year: 'year',
rating: 'rating',
actors:[
{
name: 'name',
birthday: 'birthday',
country: 'country'
}
]
}
returns a single movie against provided id
{
title: 'title',
year: 'year',
rating: 'rating',
actors:[
{
name: 'name',
birthday: 'birthday',
country: 'country'
}
]
}
deletes movie from the database based on the provided id