AlsoWallet is an app to manage your investment portfolio and control your finances. abstract: consider this repository refers to the functional software development source code base. arch: this project user a modular arquitecture wich makes it easy to scalate by creating new features the easiest way.
please principal branchesvisit:
- dev
- main
git clone https://github.com/afrancocedeno/social-app-backend
# optional - you can run from main branch
git checkout dev
$ npm install
create your .env
file and set up the following variables:
DATABASE_URL
DATABASE_NAME
DATABASE_PORT
API_KEY
JWT_SECRET
npm list
# development
$ npm run start
# rise the server in watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
if you are in development environment you can access the documentation from your browser by using this link:
localhost:3000/docs
if you are in production environment you can access the documentation from your browser by using this link:
also-wallet-backend.onrender.com/docs
- package.json
- command
npm run migrations:generate ./src/database/migration/<change_description_name>
please visit TypeORM offitial documentation.
also add these lines to your package.json scripts an test them with npm run <pckge.json_script>
"scripts": {
/* ... */
"typeorm": "typeorm-ts-node-esm -d src/<path_to>/data-source.ts",
"migrations:generate": "npm run typeorm -- migration:generate",
"migrations:run": "npm run typeorm -- migration:run",
"migrations:show": "npm run typeorm -- migration:show",
"migrations:drop": "npm run typeorm -- schema:drop"
}
patron repository -> typeorm
first create
npm run migrations:show
npm run migrations:generate <path-to-migrations-dir/migration-name>
then run
npm run migrations:show
npm run migrations:run
after making changes to entities run again
npm run migrations:show
npm run migrations:generate <path-to-migrations-dir/migration-name>
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
# get this repo to your machine
git clone https://github.com/afrancocedeno/also_wallet.git
# set the development branch to dev
git checkout <feature/your_feature>
-
Start docker desktop (for this we are using WSL)
-
raise the service
sudo docker-compose up -d postgres
- check status service
sudo docker-compose ps
- check logs of build
sudo docker-compose logs
sudo docker-compose logs -f postgres
- access container
# access manually
docker-compose exec postgres bash
also_wallet
- stop container
sudo docker-compose down
- sql
psql -h localhost -d also_wallet -U root
- sql
# list all relations
\d+
postman tableplus
- Frontend
- an AI that allows to register investments or downpayments
- an membership module to educate in all topics of the app
- add base model
- deploy to cloud room
- production database ?
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Alejandro Franco Cedeño
- Linkedin - @afrancocedeno
Nest is MIT licensed.