GithubHelp home page GithubHelp logo

bssenoz / orientation-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mavidurak/orientation-api

2.0 0.0 0.0 1.16 MB

License: GNU General Public License v3.0

JavaScript 77.60% Shell 0.49% HTML 21.92%

orientation-api's Introduction

orientation-api

.
├── .babelrc # Babel config
├── .eslintrc.js # ESLint config
├── .sequelizerc # Sequelize config
├── CONTRIBUTING.md 
├── docs
│   └── ...
├── hooks # Git hooks
│   └── pre-commit
├── LICENSE
├── nodemon.json # Nodemon config
├── package.json
├── package-lock.json
├── README.md
├── sample.env # Sample environment variables file
├── migrations
│   └── <timestamp-name>.js
├── seeders
│   └── <timestamp-name>.js
└── src
    ├── config
    │   └── sequelize.js # Database config
    ├── constants
    │   └── api.js
    ├── pre_handlers
    │   ├── authantication.js
    │   ├── complatePath.js
    │   └── index.js
│   ├── exceptions
│   │   ├── errorHandler.js
│   │   └── HTTPError.js # Custom HTTP error
    ├── models
    │   ├── index.js
    │   └── <modelName>.js
    ├── services
    │   └── <serviceName>.js
    ├── routes
    │   ├── <routeName>
    │   │   └── index.js
    │   └── index.js
    ├── joi.js # For Joi multiple error
    ├── router.js
    ├── sequelize.js # Database connection
    ├── server.js # Server start point
    └── utils
        ├── encription.js
        ├── generateSlug.js
        └── sendEmail.js

        

Install

git clone https://github.com/mavidurak/orientation-api.git
cd orientation-api

Setup

Install dependencies

npm install

Set environment variables

Copy sample.env file then changes values.

cp sample.env .env
APP_PORT=4000
DATABASE=mavidurak
TEST_DATABASE=mavidurak_test
DATABASE_USERNAME=root
DATABASE_PASSWORD=
DATABASE_HOST=localhost
API_PATH=http://localhost:4000
DASHBOARD_UI_PATH=http://localhost:8080
EMAIL_HOST=
EMAIL_PORT=
EMAIL_SECURE=
EMAIL_USER=
EMAIL_PASSWORD=

Send mail with smtp.gmail. If you use smtp.google, EMAIL_SECURE=is must be true,

Send mail with smtp.office365.com. If you use smtp.office365.com, EMAIL_SECURE=leave blank.

Migrate

Create database then migrate it

npm run migrate

Seed

Insert random data into database

npm run seed

Start

npm start

Lint

npm run lint

Build Hooks

Build git hooks

npm run build-hooks

Build Code

npm run build

Contributing

CONTRIBUTING.md

Docs

docs/docs.md

License

GNU General Public License v3.0

orientation-api's People

Contributors

arifkarakilic avatar beyzaerkan avatar bssenoz avatar burakack avatar metecode avatar rumeysabyrk avatar saracalihan avatar

Stargazers

 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.