https://github.com/fivepoint-0/ldap-auth-api
https://github.com/fivepoint-0/ldap-auth-api
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fivepoint-0/ldap-auth-api
- Owner: fivepoint-0
- Created: 2022-02-08T20:10:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-27T16:09:42.000Z (about 4 years ago)
- Last Synced: 2025-03-03T09:27:57.170Z (over 1 year ago)
- Language: TypeScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Awesome Project Build with TypeORM
## Running Application and Installation
Steps to run this project:
1. Create `ormconfig.json` (you can view the settings options at [TypeORM ORM Config](https://github.com/typeorm/typeorm/blob/master/docs/using-ormconfig.md#using-ormconfigjson)):
```json
{
"type": "DB_TYPE",
"host": "DB_HOST_ADDRESS",
"port": "DB_PORT",
"username": "DB_USERNAME_HERE",
"password": "DB_PASSWORD_HERE",
"database": "DB_DATABASE_NAME_HERE",
"synchronize": true,
"logging": true,
"entities": [
"src/entity/**/*.ts"
],
"migrations": [
"src/migration/**/*.ts"
],
"subscribers": [
"src/subscriber/**/*.ts"
],
"cli": {
"entitiesDir": "src/entity",
"migrationsDir": "src/migration",
"subscribersDir": "src/subscriber"
}
}
```
If you don't want to use `ormconfig.json`, you can also [use environment variables](https://github.com/typeorm/typeorm/blob/master/docs/using-ormconfig.md#using-environment-variables).
2. Create a `.env` file (you can rename `.env.example` for this):
```env
SERVER_PORT=3000
```
3. Run `npm install`.
4. Run `npm start`.
## Building
To build the project, run `npm build`.