This is a back-end API, which provides data to this application that I developed.
Tracking your time
This project is created with the porpuse of register and tracking the time invested on diferent tasks. The UI has diferent interactive elements like a toogle, a funcional carousel to see the task. Also the login/logout is implemented using tokens so fell free to use any password it will be encripted.
- Create a new user and return a token
- Require authentication for login
- Filter the password
- Create tasks for users
It's deployed here on heroku
This project was built using these technologies.
- Ruby on Rails
- rack-cors
- GitHub
- Rubocop
- Stylelint
To get a local copy up and running follow these simple example steps.
- Clone this repo:
- Clone with SSH:
[email protected]:jessicafarias/tracking_app_api.git
- Clone with HTTPS
https://github.com/jessicafarias/tracking_app_api.git
- Clone with GitHub CLI
gh repo clone jessicafarias/tracking_app_api.git
- cd to tracking_app_api.git
Install dependencies:
$ bundle install
Start the local webserver:
$ rails s -p 3002
will open the project at local webserver at http://localhost:3002/
for all request you will need base URL:
const baseUrl = https://jesapi.herokuapp.com
const url = `${baseUrl}/tasks`;
const config = `{
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json',
Authorization: ` Bearer ${token} `,
},
redirect: 'follow',
body: JSON.stringify(data),
}`
const url = `${baseUrl}/tasks/`;
const config = `{
method: 'GET',
mode: 'cors',
headers: {
Authorization: `Bearer ${token} `,
}`
const url = `${baseUrl}/tasks/today`;
const config = `{
method: 'GET',
mode: 'cors',
headers: {
Authorization: `Bearer ${token}`,
}`
const url = `${baseUrl}/tasks/yesterday`;
const config = `{
method: 'GET',
mode: 'cors',
headers: {
Authorization: `Bearer ${token}`,
}`
const url = `${baseUrl}/tasks/30-03-2021`;
const config = `{
method: 'GET',
mode: 'cors',
headers: {
Authorization: `Bearer ${token}`,
}`
const url = `${baseUrl}/users/sign_up`;
const config = `{
method: 'POST',
mode: 'cors',
headers: { 'Content-Type': 'application/json' },
redirect: 'follow',
body: JSON.stringify(data),
},`
const url = `${baseUrl}/users/sign_in`;
const config = `{
method: 'POST',
mode: 'cors',
headers: { 'Content-Type': 'application/json' },
redirect: 'follow',
body: JSON.stringify(data),
}`
const apiUrl = `${baseUrl}/users/sign_out`;
const config = `{
method: 'POST',
mode: 'cors',
headers: { 'Content-Type': 'application/json' },
redirect: 'follow',
body: JSON.stringify(data),
}`
Working as a FullStack developer on this project.
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐ if you like this project!
This project is MIT licensed.