diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000..b26c35b
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,26 @@
+{
+ "env": {
+ "node": true,
+ "es6": true,
+ "jest": true
+ },
+ "parser": "@typescript-eslint/parser",
+ "parserOptions": {
+ "ecmaVersion": 2018,
+ "sourceType": "module"
+ },
+ "extends": [
+ "eslint:recommended",
+ "plugin:prettier/recommended",
+ "plugin:@typescript-eslint/recommended",
+ "plugin:jest/recommended"
+ ],
+ "globals": {
+ "Atomics": "readonly",
+ "SharedArrayBuffer": "readonly"
+ },
+ "plugins": [
+ ],
+ "rules": {
+ }
+}
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000..dd84ea7
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,38 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: ''
+labels: ''
+assignees: ''
+
+---
+
+**Describe the bug**
+A clear and concise description of what the bug is.
+
+**To Reproduce**
+Steps to reproduce the behavior:
+1. Go to '...'
+2. Click on '....'
+3. Scroll down to '....'
+4. See error
+
+**Expected behavior**
+A clear and concise description of what you expected to happen.
+
+**Screenshots**
+If applicable, add screenshots to help explain your problem.
+
+**Desktop (please complete the following information):**
+ - OS: [e.g. iOS]
+ - Browser [e.g. chrome, safari]
+ - Version [e.g. 22]
+
+**Smartphone (please complete the following information):**
+ - Device: [e.g. iPhone6]
+ - OS: [e.g. iOS8.1]
+ - Browser [e.g. stock browser, safari]
+ - Version [e.g. 22]
+
+**Additional context**
+Add any other context about the problem here.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 0000000..bbcbbe7
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,20 @@
+---
+name: Feature request
+about: Suggest an idea for this project
+title: ''
+labels: ''
+assignees: ''
+
+---
+
+**Is your feature request related to a problem? Please describe.**
+A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
+
+**Describe the solution you'd like**
+A clear and concise description of what you want to happen.
+
+**Describe alternatives you've considered**
+A clear and concise description of any alternative solutions or features you've considered.
+
+**Additional context**
+Add any other context or screenshots about the feature request here.
diff --git a/.github/settings.yml b/.github/settings.yml
index dd2e5bd..9c077ec 100644
--- a/.github/settings.yml
+++ b/.github/settings.yml
@@ -1,6 +1,6 @@
repository:
- name: myment-back
- description: Myment Travel app BackEnd
+ name: myment-front
+ description: Myment Travel app FrontEnd
homepage:
topics:
private: true
@@ -11,41 +11,77 @@ repository:
allow_squash_merge: true
allow_merge_commit: true
labels:
- - name: "Status: Blocked"
- color: e2002a
- description: An issued blocked
-
- - name: "Status: On Hold"
- color: c0d2da
- description: the tasks that we will not do until further notice
-
- - name: "Type: Bug"
+ - name: "bug"
color: CC0000
description: An issue with the system bug
- - name: "Type: Enhancement"
+ - name: "enhancement"
color: 83b8e8
description: An issue to enhancement the system ⚙️.
- - name: "Type: Maintenance"
- color: fcc73a
- description: An issue to maintenance the system.
-
- - name: "Type: Analysis"
+ - name: "question"
color: cd237b
description: An issue to maintenance the system.
- - name: "Type: Feature"
+ - name: "feature"
color: 336699
description: New functionality.
- - name: "Type: Discussion"
+ - name: "discussion"
color: ddd8cc
- decription: we haven't reached a consensus there, maybe you can contribute?
+ description: we haven't reached a consensus there, maybe you can contribute?
+
+ - name: "feedback"
+ color: fcc73a
+ description: General feedback more than bug reports or feature requests.
+
+ - name: "help-wanted"
+ color: 46E251
+ description: The FullStacktf core team would appreciate help from the community in resolving these issues.
- - name: "Type: Epic"
+ - name: "more-information-needed"
+ color: 8A46E2
+ description: More information needs to be collected about these problems or feature requests (e.g. steps to reproduce).
+
+ - name: "needs-reproduction"
+ color: C346E2
+ description: Likely bugs, but haven't been reliably reproduced
+
+ - name: "duplicate"
color: 74b566
- description: is an issue that can lead to several PRs and should be broken down into atomic issues before it gets implemented.
+ description: Issues which are duplicates of other issues, i.e. they have been reported before.
+
+ - name: "blocked"
+ color: FA0415
+ description: Issues blocked on other issues.
+
+ - name: "wontfix"
+ color: 04B0FA
+ description: The FullStacktf core team has decided not to fix these issues for now, either because they're working as intended or for some other reason.
+
+ - name: "invalid"
+ color: FAD104
+ description: Issues which aren't valid (e.g. user errors).
+
+ - name: "work-in-progress"
+ color: 6F04FA
+ description: Pull requests which are still being worked on, more changes will follow.
+
+ - name: "needs-review"
+ color: FA0425
+ description: Pull requests which need code review, and approval from maintainers or FullStacktf core team.
+
+ - name: "under-review"
+ color: 04FAFA
+ description: Pull requests being reviewed by maintainers or FullStacktf core team.
+
+ - name: "requires-changes"
+ color: FA7F04
+ description: Pull requests which need to be updated based on review comments and then reviewed again.
+
+ - name: "needs-testing"
+ color: 3EFA04
+ description: Pull requests which need manual testing.
- name: "Priority: Critical"
color: e2002a
@@ -63,38 +99,6 @@ labels:
color: 009922
description: low priority tasks that can be done when there's no medium priority tasks
- - name: "Estimate: 1h"
- color: bfe5c1
- description: Estimate 1hour
-
- - name: "Estimate: 2h"
- color: bfe5c1
- description: Estimate 2 hours
-
- - name: "Estimate: 3h"
- color: bfe5c1
- description: Estimate 3 hours
-
- - name: "Estimate: 5h"
- color: bfe5c1
- description: Estimate 5 hours
-
- - name: "Estimate: 8h"
- color: bfe5c1
- description: Estimate 8 hours
-
- - name: "Estimate: 13h"
- color: bfe5c1
- description: Estimate 13 hours
-
- - name: "Estimate: 20h"
- color: bfe5c1
- description: Estimate 20 hours
-
- - name: "Estimate: 40h"
- color: bfe5c1
- description: Estimate 40 hours
-
branches:
- name: master
protection:
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..b6352e0
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,53 @@
+branches:
+ only:
+ - master
+ - docs
+
+services:
+ - docker
+
+matrix:
+ include:
+ - language: node_js
+ name: "Testing Docker Server"
+ nodejs:
+ - "10"
+ before_script:
+ - docker pull $DOCKER_USERNAME/express-mongo
+ - docker run -p 27017:27017 -d $DOCKER_USERNAME/express-mongo
+ - docker ps
+ - set -e PORT=3000
+ script:
+ - npm run test:coverage
+ - npm run coverage:coveralls
+ - npm run coverage:codacy
+
+ - language: node_js
+ name : "Documentation Deployment"
+ nodejs:
+ - "10"
+ script:
+ - npm run build
+ - npm run build:docs
+ deploy:
+ local_dir: docs/api
+ github_token: $GH_TOKEN
+ provider: pages
+ skip_cleanup: true
+ keep_history: true
+ on:
+ branch: docs
+
+ - language: bash
+ name: "Docker Build"
+ before_script: docker build -t $DOCKER_USERNAME/express-mongo .
+ script: docker run -d -p 27017:27017 $DOCKER_USERNAME/express-mongo
+ after_success:
+ - docker ps
+ - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
+ - docker push $DOCKER_USERNAME/express-mongo:latest
+
+
+
+
+
\ No newline at end of file
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..3c3ba88
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,94 @@
+# Citizen Code of Conduct
+
+## 1. Purpose
+
+A primary goal of Myment is to be inclusive to the largest number of contributors, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof).
+
+This code of conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior.
+
+We invite all those who participate in Myment to help us create safe and positive experiences for everyone.
+
+## 2. Open [Source/Culture/Tech] Citizenship
+
+A supplemental goal of this Code of Conduct is to increase open [source/culture/tech] citizenship by encouraging participants to recognize and strengthen the relationships between our actions and their effects on our community.
+
+Communities mirror the societies in which they exist and positive action is essential to counteract the many forms of inequality and abuses of power that exist in society.
+
+If you see someone who is making an extra effort to ensure our community is welcoming, friendly, and encourages all participants to contribute to the fullest extent, we want to know.
+
+## 3. Expected Behavior
+
+The following behaviors are expected and requested of all community members:
+
+ * Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
+ * Exercise consideration and respect in your speech and actions.
+ * Attempt collaboration before conflict.
+ * Refrain from demeaning, discriminatory, or harassing behavior and speech.
+ * Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
+ * Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations.
+
+## 4. Unacceptable Behavior
+
+The following behaviors are considered harassment and are unacceptable within our community:
+
+ * Violence, threats of violence or violent language directed against another person.
+ * Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language.
+ * Posting or displaying sexually explicit or violent material.
+ * Posting or threatening to post other people's personally identifying information ("doxing").
+ * Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability.
+ * Inappropriate photography or recording.
+ * Inappropriate physical contact. You should have someone's consent before touching them.
+ * Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances.
+ * Deliberate intimidation, stalking or following (online or in person).
+ * Advocating for, or encouraging, any of the above behavior.
+ * Sustained disruption of community events, including talks and presentations.
+
+## 5. Weapons Policy
+
+No weapons will be allowed at Myment events, community spaces, or in other spaces covered by the scope of this Code of Conduct. Weapons include but are not limited to guns, explosives (including fireworks), and large knives such as those used for hunting or display, as well as any other item used for the purpose of causing injury or harm to others. Anyone seen in possession of one of these items will be asked to leave immediately, and will only be allowed to return without the weapon. Community members are further expected to comply with all state and local laws on this matter.
+
+## 6. Consequences of Unacceptable Behavior
+
+Unacceptable behavior from any community member, including sponsors and those with decision-making authority, will not be tolerated.
+
+Anyone asked to stop unacceptable behavior is expected to comply immediately.
+
+If a community member engages in unacceptable behavior, the community organizers may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event).
+
+## 7. Reporting Guidelines
+
+If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible. .
+
+
+
+Additionally, community organizers are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, organizers will also provide escorts as desired by the person experiencing distress.
+
+## 8. Addressing Grievances
+
+If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify fullstacktf with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies.
+
+
+
+## 9. Scope
+
+We expect all community participants (contributors, paid or otherwise; sponsors; and other guests) to abide by this Code of Conduct in all community venues--online and in-person--as well as in all one-on-one communications pertaining to community business.
+
+This code of conduct and its related procedures also applies to unacceptable behavior occurring outside the scope of community activities when such behavior has the potential to adversely affect the safety and well-being of community members.
+
+## 10. Contact info
+
+
+
+## 11. License and attribution
+
+The Citizen Code of Conduct is distributed by [Stumptown Syndicate](http://stumptownsyndicate.org) under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/).
+
+Portions of text derived from the [Django Code of Conduct](https://www.djangoproject.com/conduct/) and the [Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy).
+
+_Revision 2.3. Posted 6 March 2017._
+
+_Revision 2.2. Posted 4 February 2016._
+
+_Revision 2.1. Posted 23 June 2014._
+
+_Revision 2.0, adopted by the [Stumptown Syndicate](http://stumptownsyndicate.org) board on 10 January 2013. Posted 17 March 2013._
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..d28eefd
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,258 @@
+# Contributing to myment-front
+
+First of all... :smile:
+:raised_hands: thanks for contribute! :tada::+1:
+
+The following is a set of guidelines for contributing to myment-front
+
+#### Table Of Contents
+
+[Code of Conduct](#code-of-conduct)
+
+[What should I know before I get started?](#what-should-i-know-before-i-get-started)
+ * [Myment-front Design Decisions](#design-decisions)
+
+[How Can I Contribute?](#how-can-i-contribute)
+ * [Reporting Bugs](#reporting-bugs)
+ * [Suggesting Enhancements](#suggesting-enhancements)
+ * [Pull Requests](#pull-requests)
+
+[Styleguides](#styleguides)
+ * [Git Commit Messages](#git-commit-messages)
+ * [JavaScript Styleguide](#javascript-styleguide)
+ * [Specs Styleguide](#specs-styleguide)
+ * [Documentation Styleguide](#documentation-styleguide)
+
+[Additional Notes](#additional-notes)
+ * [Issue and Pull Request Labels](#issue-and-pull-request-labels)
+
+## Code of Conduct
+
+This project and everyone participating in it is governed by the [Myment Code of Conduct](CODE_OF_CONDUCT.md).
+
+## What should I know before I get started?
+
+### Myment and Repositories
+
+We have two differents repository for two different functionalities.
+
+[Myment FrontEnd](https://github.com/fullstacktf/myment-front)
+[Myment BackEnd](https://github.com/fullstacktf/myment-back)
+
+
+## How Can I Contribute?
+
+### Reporting Bugs
+
+This section guides you through submitting a bug report for **Myment**. Following these guidelines helps maintainers and developers understand your report :bookmark_tabs:, reproduce the behavior :computer:, and find related reports :mag_right:.
+
+Before creating bug reports, please check [this list](#before-submitting-a-bug-report) as you might find out that you don't need to create one. When you are creating a bug report, please [include as many details as possible](#how-do-i-submit-a-good-bug-report). Fill out [the required template](https://github.com/fullstacktf/myment-front/.github/ISSUE_TEMPLATE/bug_report.md), the information it asks for helps us resolve issues faster.
+
+> **Note:** If you find a **Closed** issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one.
+
+#### Before Submitting A Bug Report
+
+* **Perform a [search](https://github.com/fullstacktf/myment-front/issues)** to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue instead of opening a new one.
+
+#### How Do I Submit A (Good) Bug Report?
+
+Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). After read the guide, create an issue on that repository and provide the following information by filling in [the template](https://github.com/fullstacktf/myment-front/.github/ISSUE_TEMPLATE/bug_report.md).
+
+Explain the problem and include additional details to help maintainers reproduce the problem:
+
+* **Use a clear and descriptive title** for the issue to identify the problem.
+* **Describe the exact steps which reproduce the problem** in as many details as possible. For example, start by explaining how you started FullStacktf, e.g. which command exactly you used in the terminal, or how you started FullStacktf otherwise. When listing steps, **don't just say what you did, but explain how you did it**. For example, if you moved the cursor to the end of a line, explain if you used the mouse, or a keyboard shortcut or an FullStacktf command, and if so which one?
+* **Provide specific examples to demonstrate the steps**. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
+* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
+* **Explain which behavior you expected to see instead and why.**
+* **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux.
+* **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below.
+
+Provide more context by answering these questions:
+
+* **Did the problem start happening recently** (e.g. after updating to a new version of FullStacktf) or was this always a problem?
+* If the problem started happening recently, **can you reproduce the problem in an older version of Myment?** What's the most recent version in which the problem doesn't happen? You can download older versions of Myment from [the releases page](https://github.com/fullstacktf/myment-front/releases).
+* **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.
+* If the problem is related to working with files (e.g. opening and editing files), **does the problem happen for all files and projects or only some?** Does the problem happen only when working with local or remote files (e.g. on network drives), with files of a specific type (e.g. only JavaScript or Python files), with large files or files with very long lines, or with files in a specific encoding? Is there anything else special about the files you are using?
+
+Include details about your configuration and environment:
+
+* **What's the name and version of the OS you're using**?
+
+### Suggesting Enhancements
+
+This section guides you through submitting an enhancement suggestion for FullStacktf, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion :pencil: and find related suggestions :mag_right:.
+
+Before creating enhancement suggestions, please check [this list](#before-submitting-an-enhancement-suggestion) as you might find out that you don't need to create one. When you are creating an enhancement suggestion, please [include as many details as possible](#how-do-i-submit-a-good-enhancement-suggestion). Fill in [the template](https://github.com/fullstacktf/myment-front/.github/ISSUE_TEMPLATE/feature_request.md), including the steps that you imagine you would take if the feature you're requesting existed.
+
+#### Before Submitting An Enhancement Suggestion
+
+* **Check the [debugging guide](https://flight-manual.atom.io/hacking-atom/sections/debugging/)** for tips — you might discover that the enhancement is already available. Most importantly, check if you're using [the latest version of FullStacktf](https://flight-manual.atom.io/hacking-atom/sections/debugging/#update-to-the-latest-version) and if you can get the desired behavior by changing [FullStacktf's or packages' config settings](https://flight-manual.atom.io/hacking-atom/sections/debugging/#check-atom-and-package-settings).
+* **Check if there's already [a package](https://atom.io/packages) which provides that enhancement.**
+* **Determine [which repository the enhancement should be suggested in](#atom-and-packages).**
+* **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Aatom)** to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
+
+#### How Do I Submit A (Good) Enhancement Suggestion?
+
+Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com/features/issues/). After you've determined [which repository](#atom-and-packages) your enhancement suggestion is related to, create an issue on that repository and provide the following information:
+
+* **Use a clear and descriptive title** for the issue to identify the suggestion.
+* **Provide a step-by-step description of the suggested enhancement** in as many details as possible.
+* **Provide specific examples to demonstrate the steps**. Include copy/pasteable snippets which you use in those examples, as [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
+* **Describe the current behavior** and **explain which behavior you expected to see instead** and why.
+* **Include screenshots and animated GIFs** which help you demonstrate the steps or point out the part of FullStacktf which the suggestion is related to. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux.
+* **Explain why this enhancement would be useful** to most FullStacktf users and isn't something that can or should be implemented as a [community package](#atom-and-packages).
+* **List some other text editors or applications where this enhancement exists.**
+* **Specify which version of FullStacktf you're using.** You can get the exact version by running `atom -v` in your terminal, or by starting FullStacktf and running the `Application: About` command from the [Command Palette](https://github.com/atom/command-palette).
+* **Specify the name and version of the OS you're using.**
+
+### Pull Requests
+
+The process described here has several goals:
+
+- Maintain Myment's code quality
+- Fix problems that are important to users
+- Enable a sustainable system for Myment's maintainers to review contributions
+
+Please follow these steps to have your contribution considered by the maintainers:
+
+1. Follow all instructions in [the template](PULL_REQUEST_TEMPLATE.md)
+2. Follow the [styleguides](#styleguides)
+3. After you submit your pull request, verify that all [status checks](https://help.github.com/articles/about-status-checks/) are passing What if the status checks are failing?
If a status check is failing, and you believe that the failure is unrelated to your change, please leave a comment on the pull request explaining why you believe the failure is unrelated. A maintainer will re-run the status check for you. If we conclude that the failure was a false positive, then we will open an issue to track that problem with our status check suite.
+
+While the prerequisites above must be satisfied prior to having your pull request reviewed, the reviewer(s) may ask you to complete additional design work, tests, or other changes before your pull request can be ultimately accepted.
+
+## Styleguides
+
+### Git Commit Messages
+
+* Use the present tense ("Add feature" not "Added feature")
+* Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
+* Limit the first line to 72 characters or less
+* Reference issues and pull requests liberally after the first line
+* Consider starting the commit message with an applicable emoji:
+ * :beers: `:beers:` when improving the format/structure of the code
+ * :dart: `:dart:` when improving performance
+ * :coffee: `:coffee:` when writing docs
+ * :eyeglasses: `:eyeglasses:` when fixing a bug
+ * :skull: `:skull:` when removing code or files
+ * :rocket: `:rocket:` when add code wait later fixings
+ * :green_heart: `:green_heart:` when fixing the CI build
+ * :sunny: `:sunny:` when adding tests
+ * :lock: `:lock:` when dealing with security
+ * :arrow_up: `:arrow_up:` when upgrading dependencies
+ * :arrow_down: `:arrow_down:` when downgrading dependencies
+ * :pill: `:pill:` when removing linter warnings
+
+### JavaScript Styleguide
+
+All JavaScript must adhere to [JavaScript Standard Style](https://standardjs.com/).
+
+* Prefer the object spread operator (`{...anotherObj}`) to `Object.assign()`
+* Inline `export`s with expressions whenever possible
+ ```js
+ // Use this:
+ export default class ClassName {
+
+ }
+
+ // Instead of:
+ class ClassName {
+
+ }
+ export default ClassName
+ ```
+* Place requires in the following order:
+ * Built in Node Modules (such as `path`)
+ * Local Modules (using relative paths)
+
+### Test Styleguide
+
+- Include thoughtfully-worded, well-structured [Jest](https://jestjs.io/) test in the `__test__` folder.
+- Treat `describe` with the name of the class or component.
+- Treat the state of test with `beforeEach`,`afterEach` or `beforeAll`,`afterAll`
+- Treat `test` as a statement about state or how an operation changes state.
+
+#### Example
+
+```js
+describe('Button', () => {
+ // Applies only to tests in this describe block
+ // Managing the state
+ beforeEach(() => {
+ return initializeDatabase();
+ });
+ afterEach(() => closeDatabase());
+
+ test('click twice', () => {
+ #spec here
+ })
+
+});
+```
+
+### Documentation Styleguide
+
+* Use [Markdown](https://daringfireball.net/projects/markdown).
+
+#### Example
+
+```js
+/*
+* Docs
+*
+*/
+```
+
+## Additional Notes
+
+### Issue and Pull Request Labels
+
+This section lists the labels we use to help us track and manage issues and pull requests.
+
+[GitHub search](https://help.github.com/articles/searching-issues/) makes it easy to use labels for finding groups of issues or pull requests you're interested in. We encourage you to read about [other search filters](https://help.github.com/articles/searching-issues/) which will help you write more focused queries.
+
+The labels are loosely grouped by their purpose, but it's not required that every issue have a label from every group or that an issue can't have more than one label from the same group.
+
+#### Type of Issue and Issue State
+
+| Label name | `myment-front` :mag_right: | Description |
+| --- | --- | --- | --- |
+| `enhancement`__| [search][search-myment-front-label-enhancement] | Feature requests. |
+| `bug`__ | [search][search-myment-front-label-bug] | Confirmed bugs or reports that are very likely to be bugs. |
+| `question`__| [search][search-myment-front-label-question] | Questions more than bug reports or feature requests (e.g. how do I do X). |
+| `feedback`__ | [search][search-myment-front-label-feedback] | General feedback more than bug reports or feature requests. |
+| `help-wanted`__ | [search][search-myment-front-label-help-wanted] | The FullStacktf core team would appreciate help from the community in resolving these issues. |
+| `more-information-needed`__ | [search][search-myment-front-label-more-information-needed] | More information needs to be collected about these problems or feature requests (e.g. steps to reproduce). |
+| `needs-reproduction`__ | [search][search-myment-front-label-needs-reproduction] | Likely bugs, but haven't been reliably reproduced. |
+| `blocked`__ | [search][search-myment-front-label-blocked] | Issues blocked on other issues. |
+| `duplicate`__ | [search][search-myment-front-label-duplicate] | Issues which are duplicates of other issues, i.e. they have been reported before. |
+| `wontfix`__ | [search][search-myment-front-label-wontfix] | The FullStacktf core team has decided not to fix these issues for now, either because they're working as intended or for some other reason. |
+| `invalid`__ | [search][search-myment-front-label-invalid] | Issues which aren't valid (e.g. user errors). |
+
+#### Pull Request Labels
+
+| Label name | `myment-front` :mag_right: | Description
+| --- | --- | --- | --- |
+| `work-in-progress`__ | [search][search-myment-front-label-work-in-progress] | Pull requests which are still being worked on, more changes will follow. |
+| `needs-review`__ | [search][search-myment-front-label-needs-review] | Pull requests which need code review, and approval from maintainers or FullStacktf core team. |
+| `under-review`__ | [search][search-myment-front-label-under-review] | Pull requests being reviewed by maintainers or FullStacktf core team. |
+| `requires-changes`__ | [search][search-myment-front-label-requires-changes] | Pull requests which need to be updated based on review comments and then reviewed again. |
+| `needs-testing`__ | [search][search-myment-front-label-needs-testing] | Pull requests which need manual testing. |
+
+[search-myment-front-label-enhancement]: https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Aenhancement
+[search-myment-front-label-bug]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Abug
+[search-myment-front-label-question]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Aquestion
+[search-myment-front-label-feedback]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Afeedback
+[search-myment-front-label-help-wanted]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Ahelp-wanted
+[search-myment-front-label-more-information-needed]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Amore-information-needed
+[search-myment-front-label-needs-reproduction]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Aneeds-reproduction
+[search-myment-front-label-blocked]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Ablocked
+[search-myment-front-label-duplicate]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Aduplicate
+[search-myment-front-label-wontfix]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Awontfix
+[search-myment-front-label-invalid]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Ainvalid
+[search-myment-front-label-work-in-progress]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Awork-in-progress
+[search-myment-front-label-needs-review]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Aneeds-review
+[search-myment-front-label-under-review]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Aunder-review
+[search-myment-front-label-requires-changes]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Arequires-changes
+[search-myment-front-label-needs-testing]:https://github.com/search?q=is%3Aopen+repo%3Afullstacktf%2Fmyment-front+label%3Aneeds-testing
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..8de3f90
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,10 @@
+FROM node:10-alpine
+
+LABEL Delirial elarcadeldelirio@gmail.com
+LABEL version="1.0"
+LABEL description="API backend for testing \
+and developed on Node+Express+Mongo. \
+--- Postgresql Stack ----"
+FROM postgresql:alpine
+
+
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..03a38ae
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 myment
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/app.json b/app.json
new file mode 100644
index 0000000..2170dcc
--- /dev/null
+++ b/app.json
@@ -0,0 +1,23 @@
+{
+ "addons": [
+
+ ],
+ "buildpacks": [
+ {
+ "url": "heroku/nodejs"
+ }
+ ],
+ "description": "API for myment database",
+ "env": {
+ },
+ "formation": {
+ "web": {
+ "quantity": 1
+ }
+ },
+ "name": "myment-back",
+ "scripts": {
+ },
+ "stack": "container"
+ }
+
\ No newline at end of file
diff --git a/heroku.yml b/heroku.yml
new file mode 100644
index 0000000..2b8f79b
--- /dev/null
+++ b/heroku.yml
@@ -0,0 +1,3 @@
+build:
+ docker:
+ web: Dockerfile
\ No newline at end of file
diff --git a/jest.config.js b/jest.config.js
new file mode 100644
index 0000000..91a2d2c
--- /dev/null
+++ b/jest.config.js
@@ -0,0 +1,4 @@
+module.exports = {
+ preset: 'ts-jest',
+ testEnvironment: 'node',
+};
\ No newline at end of file
diff --git a/package.json b/package.json
index 8641253..a738128 100644
--- a/package.json
+++ b/package.json
@@ -8,5 +8,27 @@
},
"keywords": [],
"author": "",
- "license": "ISC"
+ "license": "ISC",
+ "dependencies": {
+ "express": "^4.17.1",
+ "typescript": "^3.5.2"
+ },
+ "devDependencies": {
+ "@types/body-parser": "^1.17.0",
+ "@types/express": "^4.17.0",
+ "@types/jest": "^24.0.15",
+ "@types/mongoose": "^5.5.7",
+ "@types/node": "^12.0.12",
+ "@typescript-eslint/eslint-plugin": "^1.11.0",
+ "@typescript-eslint/parser": "^1.11.0",
+ "eslint": "^6.0.1",
+ "eslint-config-prettier": "^6.0.0",
+ "eslint-plugin-jest": "^22.7.2",
+ "eslint-plugin-prettier": "^3.1.0",
+ "express-generator": "^4.16.1",
+ "jest": "^24.8.0",
+ "prettier": "^1.18.2",
+ "ts-jest": "^24.0.2",
+ "ts-node": "^8.3.0"
+ }
}
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 0000000..e335371
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,27 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "esModuleInterop": true,
+ "allowSyntheticDefaultImports": true,
+ "target": "es6",
+ "noImplicitAny": true,
+ "moduleResolution": "node",
+ "sourceMap": true,
+ "outDir": "dist",
+ "baseUrl": ".",
+ "rootDir": "src",
+ "paths": {
+ "*": [
+ "node_modules/*",
+ "src/types/*"
+ ]
+ }
+ },
+ "include": [
+ "src"
+ ],
+ "exclude" :[
+ "node_modules",
+ "dist"
+ ]
+}
\ No newline at end of file