This application handles User Management (Login, Logout, Authentication, Verification..) using GraphQL.
- A running PostgreSQL-server.
- Node / npm.
-
Open a console and run
npm i
(or useyarn
). -
Configure the database parameters in
ormconfig.json
file.
The default configuration specifies the following:
- username:
postgres
- (Database-user username) - password:
welcome1
- (Database-user password) - database:
fuzzymemory
- (Name of an existing database to connect to) - host:
localhost
- (Address where PostgreSQL is running) - port:
5432
- (Port where PostgreSQL is running)
This lets TypeORM connect to the database, and perform database handling (create tables, entity handling).
- Run
npm start
.
Running tests requires a separate "test database" to run before initializing the tests.
The database name should be fuzzymemory-test
(as described in the ormconfig.json
file).
Run the tests using npm test
(or yarn test
).