This app requires node v12.0 or higher.
- Install and run MongoDB on your local machine. Mongo should be listening on port 27017.
- Clone the repo
git clone https://github.com/isaaccormack/TindArt.git
- Install NPM packages
npm install
- Compile the TypeScript
npm run build-ts
- Start the application
npm start
- Navigate to the site on http://localhost:3000/
- Clone the repo
git clone https://github.com/isaaccormack/TindArt.git
- Run docker-compose (install it if necessary)
docker-compose up
- Navigate to the site on http://localhost:3000/
- Take down the site
docker-compose down
For ease of development, running these two processes concurrently is recommended.
The TypeScript transpiler on watch mode, which transpiles TypeScript to JavaScript on every save
npm run watch-ts
and nodemon to refresh the server when new JavaScript is generated
npm run dev
To lint
npm run lint
To run unit and intergration tests (integration tests require a mongodb instance to be running on localhost:27017
)
npm run test
This app uses git flow branching. To contribute:
- Clone the Project
- Create your Feature Branch (git checkout -b feature/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature'). If you don't want the CI pipeline to be re-run on your commit (for example, if you've only changed the docs), then add [skip ci] somewhere in the commit message.
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request