Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.
/ CV-Test-Site Public archive

This is an example site to test Cassandra, with NodeJS and Angular 2 Typescript, styled with Angular 2 Material, all prepared into Docker Compose.

Notifications You must be signed in to change notification settings

YvanGuidoin/CV-Test-Site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project inactive

CV Site example

This is an example site to test Cassandra, with NodeJS and Angular 2 Typescript, styled with Angular 2 Material, all prepared into Docker Compose.

Prerequisites

To be able to test it, you need Docker with Docker Compose and Git. To install the packages, you need Node.js with npm

Launch the project

git clone https://github.com/YvanGuidoin/CV-Test-Site.git
cd CV-Test-Site/Site

If you have Yarn:

yarn

if you don't:

npm install

then

cd ..
docker-compose build
docker-compose up

Wait for a few seconds (around 30) for the database to initialize before opening your browser on http://127.0.0.1 or on the IP of your Docker machine in you're using Docker Toolbox

Components

Cassandra

Database is based on a Cassandra cluster of 2 nodes. First node to launch is a custom cassandra dockerfile to insert base data inside the application for simple testing.

You can edit data inserted with the file CassandraDB/base_data.cql and build the project again.

Node.js

The server is a simple API for the database and don't have real logic beside authentication.

Site

The site is an Angular 2 project made with Webpack 2 and Angular 2 Material. The files are made accessible using a Nginx instance.

Package management was made using Yarn.

Usual problems

If you have a slow computer, the input of data may be tried too soon during the launch of Cassandra. In this case you can enter this instruction after the docker-compose up

docker exec cassandra-db cqlsh -f /base_data.cql

About

This is an example site to test Cassandra, with NodeJS and Angular 2 Typescript, styled with Angular 2 Material, all prepared into Docker Compose.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published