Skip to content

burakack/orientation-api

 
 

Repository files navigation

orientation-api

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

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.9%
  • Shell 1.1%