Events app to manage your daily tasks.
This steps will get you through the setup process of installing and usage of the project.
To ensure the best compatibility you may need node version of v10.16
. We would recommend to use NVM (Node Version Manager) for this. You can find it Here.
Installation
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
then you can run
nvm install `version`
After set node version run
yarn install
After installing all packages, since you need the api for the requests, we need to launch the node server that receive this requests.
The server use a MongoDB database, I suggest go to the Documentation and setup this before launch the server.
To launch node server, first compile your typescript files, make shure you have typescript installed globally.
To install Typescript global you can do
yarn add --global typescript
After that, to compile server files just
tsc
The compile server file will be at dist/out-tsc on index.js file.
node index.js
or if you have nodemon installed
nodemon index.js
To check if server is running, navigate to http://localhost:3000/
The app also use a Weather API. I also suggest go to the openWeatherMap docs, register and get an API KEY. This api key will be place in a .env file with the name of WEATHER_API_KEY.
To launch Angular server
yarn run start
And Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
That's it, you are good to go!
To run the tests
yarn run test
- Angular CLI version 8.0.0. - The web framework used
- Express - node Infraestructure
- Mongoose - Schema base solution
- MongoDB - DataBase
- OpenWeatherMap - Weather API
- Angular Material - Material Design components for Angular
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.