diff --git a/.env_sample b/.env_sample deleted file mode 100644 index d1ef317..0000000 --- a/.env_sample +++ /dev/null @@ -1,2 +0,0 @@ -PORT=9000 -NODE_ENV=development diff --git a/README.md b/README.md index 083ea52..67bc4d3 100644 --- a/README.md +++ b/README.md @@ -1,60 +1,33 @@ -# Ultimate Vue.js Developers Course +# Vue.js Calendar -Source code for the [Ultimate Vue.js Developers Course](http://bit.ly/2mPK8ny). +Project based on [this course](http://bit.ly/2mPK8ny) and then added some improvements and new features on top of it. -### Project 3: Vue.js Calendar +Steps for starting the application after cloning the repository: -#### Demo +#### Install dependencies -See the completed project here: [http://vuejs-calendar.vuejsdevelopers.com/](http://vuejs-calendar.vuejsdevelopers.com/) +``` +npm install +``` -#### Pre-installation +#### Start MongoDB -- Ensure [Node.js >=5.10](https://nodejs.org/en/download/), [NPM](https://docs.npmjs.com) and [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) are installed on your system +Easiest way: +``` +docker run -d -p 27017:27017 -v /data/db mongo +``` -#### Installation +Or if the instance is running in another machine or another port, you can change the property `MONGODB_URL` in the `.env` file. -1. Install this code on your local system - - 1. Fork this repository (click 'Fork' button in top right corner) - 2. Clone the forked repository on your local file system - - ``` - cd /path/to/install/location - - git clone https://github.com/[your_username]/vuejs-calendar.git - ``` - -2. Change into directory +#### Run the app - ``` - cd vuejs-calendar - ``` - -3. Install dependencies +``` +npm run start +``` - ``` - cd vuejs-calendar - npm install - ``` +The app will be available at *localhost:[PORT]* where `PORT` is whatever value is set in your `.env` file. -4. Create a `.env` file by copying the sample +For production build set `NODE_ENV=production` in `.env` and execute `npm run build` before running `npm run start`. - ``` - cp .env_sample .env - ``` - - Edit the .env file and replace any variables if needed - -5. Start project - - ``` - npm run start - ``` - -Your site will be available at *localhost:[PORT]* where `PORT` is whatever value is set in your `.env` file. - - -#### Lecture branches - -Note that branches in the repo named `lecture/xxx` correspond to course lectures. +#### Screenshots + \ No newline at end of file diff --git a/index.html b/index.html index bd15748..faad4db 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@
-