https://github.com/felipeoriani/mindicators
2016 - Sample Rest Api application to manage any indicator you have on mind. Built in order to learn Node.Js by applying some software design principles.
https://github.com/felipeoriani/mindicators
express indicators javascript nodejs rest-api sequelize sql sql-server
Last synced: 7 months ago
JSON representation
2016 - Sample Rest Api application to manage any indicator you have on mind. Built in order to learn Node.Js by applying some software design principles.
- Host: GitHub
- URL: https://github.com/felipeoriani/mindicators
- Owner: felipeoriani
- Created: 2017-06-27T02:03:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T13:52:26.000Z (about 3 years ago)
- Last Synced: 2025-01-24T15:29:10.943Z (about 1 year ago)
- Topics: express, indicators, javascript, nodejs, rest-api, sequelize, sql, sql-server
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mindicators
This is a business application to manage any indicator you have on mind. It tries to applies some software design principles and best pratices using node.js.
### Setup
First install `node`. It was built on a lagacy version but it's still working with 18.x LTS version.
If you don't have a SQL Server instance running, you can easly get it as a docker container by running the following statement:
```
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=***********" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2022-latest
```
You can change the `MSSQL_SA_PASSWORD` for a password of yuour choice (using lowercase, uppercase, numbers and special chars). Once you run this, we have the `sa` user and the password defined. Go to the `~/data/db.js` file change the data access information on the sequelize setup at line 6 (I know it could be at a config file). Then, connect into SQL Server and create a database called `mindicators` and run the script available on `~/scripts`.
Once you have it, go to the console and run:
```
npm install
```
To install the dependencies and
```
npm start
```
To start the application. You will see the application running at http port `3000`.
Open the postmand and include the collection available on the root of this repository and you are good to go!