Go to file
2020-05-13 19:58:42 +02:00
api Add express-validator library 2020-05-11 00:48:27 +02:00
config Implement auth with jwt and add endpoints 2020-05-08 13:12:10 +02:00
data Update readme with installation steps 2020-05-13 18:45:10 +02:00
helpers Reorganize and improve error responses 2020-05-11 00:03:48 +02:00
middlewares Add validateParticipantID to participant routes 2020-05-11 00:25:08 +02:00
.gitignore Initial commit 2020-03-20 13:25:37 +00:00
index.js Replace bcrypt with bcryptjs / move env to config 2020-05-07 15:10:15 +02:00
knexfile.js Replace bcrypt with bcryptjs / move env to config 2020-05-07 15:10:15 +02:00
LICENSE Add basic server 2020-04-14 14:42:49 +02:00
package-lock.json Add express-validator library 2020-05-11 00:48:27 +02:00
package.json Add express-validator library 2020-05-11 00:48:27 +02:00
README.md Fix table of users formatting 2020-05-13 19:58:42 +02:00

Meeting Planner Backend

Meeting Planner helps you find the best time to schedule a meeting across several timezones. It's based on the availibity of all participants for specific days.

Backend architecture

Backend installation

1 | Create a database on Postgres

Any up to date postgres should work. You will need the following informations:

  • username
  • password
  • hostname
  • database

2 | Create and/or configure an .env file

  • Create a .env file at the root of the backend folder
  • Replace all variables noted with $ below, and save it to the .env file
NODE_ENV=development // This can't be changed for now
PORT=$port_number
DATABASE_URL=postgres://$db_user:$db_user_password@$hostname:5432/$db_name
JWT_SECRET=$long_random_characters

3 | Installation of packages (NodeJS needs to be installed)

  • npm i

Migrate tables to database

  • npx knex migrate:latest

Seed database with dummy content (optional)

Running this will add some users and meetings.

  • npx knex seed:run

List of users

Liza Emile Jack Cynthia Celine
liza@example.com emile@example.com jack@example.com cynthia@example.com celine@example.com
liza-password emile-password jack-password cynthia-password celine-password