Giter Club home page Giter Club logo

atlp-test's Introduction

Build Status Coverage Status Reviewed by Hound

Barefoot Nomad - Making company travel and accomodation easy and convinient.

Vision

Make company global travel and accommodation easy and convenient for the strong workforce of savvy members of staff, by leveraging the modern web.

This is the swagger API documentation link

Heroku backend endpoint

This the heroku staging Api https://script-heroes-bn-backend-stgng.herokuapp.com/

This the production Api https://script-heroes-bn-backend.herokuapp.com/

Setup Dotenv

  • Create .env file in project root directory
  • Copy keys in .env-example file, which is in the project root directory and assign values to those keys.
  • You can add more environmenta variables to the .env file
  • To use declared variables, require dotenv at the top of your file import dotenv from 'dotenv' and call its method config dotenv.config()
  • Access environment variable value by using process.env.KEY_NAME where KEY_NAME is the variable name.

Note: If you make changes that uses environmental variables make sure to add those variables with example values in the .env.example file.

Sequelize and Sequelize-cli

1 Installing cli

npm install

2 Running Migrations

sequelize db:migrate

3 Running Seeds

sequelize db:seed:all

Signup Endpoint

User Registration Model

{
  "firstName": "name",
  "lastName": "lastName",
  "email": "[email protected]",
  "phoneNumber": "12345678",
  "password": "mypassword"
}

Profile Page Settings Endpoints

Complete Profile Model

{
gender: DataTypes.STRING,
birthdate: DataTypes.DATE,
language: DataTypes.STRING,
currency: DataTypes.STRING,
country: DataTypes.STRING,
department: DataTypes.STRING,
linemanager: DataTypes.INTEGER
}

Update Profile Model

{
firstName: DataTypes.STRING,
lastName: DataTypes.STRING,
phoneNumber: DataTypes.STRING,
gender: DataTypes.STRING,
birthdate: DataTypes.DATE,
language: DataTypes.STRING,
currency: DataTypes.STRING,
country: DataTypes.STRING,
department: DataTypes.STRING,
linemanager: DataTypes.INTEGER
}

Profile Schema

{
  "firstName": "name",
  "lastName": "lastName",
  "email": "[email protected]",
  "phoneNumber": "12345678",
  "gender": "Male",
  "birthdate": "1978-05-04T00:00:00.000Z",
  "language": "Kinyarwanda",
  "currency": "US$",
  "country": "Rwanda",
  "department": "IT",
  "linemanager": "JOHN Doe"
}

Accommodation model

{
  "facilityName": "facility Name",
  "locationId": 1,
  "description": "Full description of the facility",
  "roomType": "room type",
  "photoUrl": "Url for image"
}

Endpoints

atlp-test's People

Contributors

kipropbrian avatar habinezajanvier avatar dushimeemma avatar api-imperfect avatar ericus123 avatar beyfaith avatar b0nbon1 avatar elvisiraguha avatar valens10 avatar jpirumvaa avatar florisng avatar mifeille avatar

Watchers

Adadie Kashumba avatar

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.