Skip to content

Adib128/space-flight-booking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL service for space flight booking

Installation

Installation with docker

# Change directory
$ cd space-flight-booking
# Rename the .env example file
$ mv .env.example .env
# Runing the docker containers
$ docker-compose up

Installation without docker

# Change directory
$ cd space-flight-booking
# Rename the .env example file
$ mv .env.example .env
# Install NPM dependencies
$ npm install
# Create database tables
$ npm run migrate
# Seed database with planets and spaceCenters
$ npm run seed
# Start the project
$ npm start

Testing

$ npm run test

Security

All the queries and the mutations are protected. They are accessed by sending the authorization key.

{
    "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages