GithubHelp home page GithubHelp logo

arcasebastian / alkemynodeapi Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 724 KB

An challenge API, that use disney characters, movies and their genres. Comes with a fill CRUD

Home Page: alkemy-node-api.vercel.app

JavaScript 99.80% Dockerfile 0.20%

alkemynodeapi's Introduction

Alkemy Disney API

This is a project created as part of the AlkemyLabs Node.Js Challenge.

_

Objective

The objective of this challenge was to create a RESTful API with Node.js using Express.js, following REST patterns and conventions.

Approach taken

The API was built using a TDD(Test Driven Development) approach, using the tests as a central part of the process.

Documentation

This API allows to a registered user to do basic CRUD functions for Characters, Movies/Series and Genres. So in the first place you need to register a valid Email.

The full documentation can be found in Postman

Setup

To use this repository you need to have:

  • Npm installed.
  • A valid Mysql database.

Before you run the server for the first time you have to create a .env file in the root folder with the following fields:

  • DATABASE: Production database schema.
  • TEST_DATABASE: Database schema used to run the tests. It can be the same as Production, but is recommended to use a new one.
  • DATABASE_USER: Mysql user with full access to both databases.
  • DATABASE_PASSWORD: Mysql password for the user.
  • DATABASE_HOST: Ip with the mysql instance running (Must be "db" if you are using the incluided docker config)
  • JWT_SECRET: Value used to encrypt users authetication tokens.

Then you can run npm start to start the local server in production mode or npm test to run it in test mode with all the tests.

Courier.

This project utilizes Courier to send a welcome mail to a new user. To make use of this you need to create a courier Account, log in and setup a new Notification message, sets up at least one Email Channel to that notification.

Once this is done you needs to add to .env file the following fields:

  • COURIER_AUTH_TOKEN: Courier Auth Token.
  • COURIER_NOT_EVENT: Courier Notification Event ID
  • COURIER_BRAND: Courier Brand ID.

This values can be found in the Send Tab of the notification configuration.

Heroku.

This API can be found in the following url: https://alkemy-api-challenge.herokuapp.com

alkemynodeapi's People

Contributors

arcasebastian avatar

Watchers

 avatar  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.