Skip to content

Simple app for making and confirming room reservations at hotels. I initially started working on this so I could use it as my submission to the Twilio Dev Hackathon contest.

rukykf/ReserveARoomApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Instructions

The application requires you to have a minimum node version of 10.x installed.

You can use either yarn or npm to install the packages and run the commands.

From the main folder, cd into the server directory, copy the .env.example file into a .env file and fill out your environment variables, Twilio API keys and APP_SECRET. The APP_SECRET will be used to encrypt user sessions

Run the following commands in the server directory:

Install packages

yarn install

Setup the database (this project uses an SQLite database named reservations.db located in the ./server directory)

yarn run knex migrate:latest --env=development // you can set any other environment here

Seed the database

yarn run knex seed:run --env=development

Start the server

yarn run nodemon index.js

Run the tests (using Jest)

yarn test

Setup Instructions (Using Vagrant and Make)

There's a Vagrantfile.example and a Makefile containing utilities for setting up the application in a Vagrant box. The commands in Vagrantfile.example use VirtualBox as Vagrant's provider. You can copy the example into a Vagrantfile and make any necessary changes before spinning up your vm.

After setting up Vagrant, cd into /vagrant and run make provision-local

This will install node 10.x and yarn You can then follow along with the Setup Instructions above or use some of the other make commands in the Makefile

Front-End

Right now, the back-end is mostly finished. I intend to work on a Vue SPA eventually.

Back-End

Currently, the available endpoints are registered in ./server/src/routes.js

About

Simple app for making and confirming room reservations at hotels. I initially started working on this so I could use it as my submission to the Twilio Dev Hackathon contest.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages