Giter VIP home page Giter VIP logo

adopets-api's Introduction

adopets-api

API for Adopets challenge.

Before Running the project

For the App start, is necessary a relational Database. I've been used MySql, so the preference is a MySql Database.

There's some variables on .env file, located in the root directory. you can change then to the configs that you want or need.

ATTENTION

For some reasons, my MySql server is running on PORT 3380, for change that, you can add an variable in .env file called DB_PORT. The default port for MySql is 3360.

Commands for Start the project

Run 'npm install' for install all dependencies

Run 'npx' or 'yarn' sequelize db:create for create the database

Run 'npx' or 'yarn' sequelize db:migrate for create all tables on the database

Run 'npx' or 'yarn' sequelize-cli db:seed:all for start with an user.

For access to the API , it's seeded on the command with the user: {"email": "[email protected]", "password" : "adopets"}. So you can use this login.

Tests

The test were been made in Jest. They are not fully complete, still rest a lot to do. For reasons of my actually work, i couldn't finish it.

For run all the tests made untill today. Run 'npm test'

The test runs in a MySqlite database in memory. And it revert everything at the end.

adopets-api's People

Contributors

ronan99 avatar dependabot[bot] avatar

Watchers

 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.