Hair Care is the online destination for beauty & wellness professionals and clients. Professionals can showcase their work, connect with new and existing clients, and build their business. Clients can discover new services and providers, book appointments online, and get inspired.
NodeJS backend.
ExpressJS framework for the API.
express-session session middleware for managing user state across requests.
CORS for Cross-Origin configuration. helmet for basic security adjustments to the server. bcrypt for encrypting/hashing sensitive user data.
jest supertest Database:
knex as the query builder and interface to postgres pg PostgreSQL
$ npm install
Required environment variables
These are required to get the server working after install:
`` NODE_ENV - production / development
PORT - For heroku deployment
DATABASE_ENV - testing / developing / production
DATABASE_URL - Production database connection string (used by heroku)
DATABASE_URL_DEV - development database connection string
DATABASE_URL_TEST - testing database connection string
JWT_SECRET - Key for encrypting JWTs``
$ npm run start
$ npm run start:dev Developing
$ npm run db:latest
$ npm run db:rollback
$ npm run db:seed
Testing
$ npm run test:e2e
$ npm run test:cov
License
This project is MIT licensed