You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ayush Mukherjee 2c746bdd88 | 2 years ago | |
---|---|---|
src | 2 years ago | |
.env.example | 2 years ago | |
.eslintrc.js | 2 years ago | |
.gitignore | 2 years ago | |
.prettierrc | 2 years ago | |
Dockerfile | 2 years ago | |
README.md | 2 years ago | |
nest-cli.json | 2 years ago | |
package-lock.json | 2 years ago | |
package.json | 2 years ago | |
sf-class2-root.crt | 2 years ago | |
tsconfig.build.json | 2 years ago | |
tsconfig.json | 2 years ago |
README.md
Nest Js Simple User API with Cassandra
This is a simple nest js user api with 2 endpoints - get all users and create a user, using cassandra as the underlying database.
Development
- Copy
.env.example
to.env
- Make sure cassandra is running locally/via docker and replace the values in the env file accordingly
npm i
npm run start:dev
Production (with AWS Keyspaces)
- Copy
.env.example
to.env
- Ensure
ENVIRONMENT = "production"
if using AWS Keyspaces and replace the other values with AWS endpoints npm i
npm run build
npm run start:prod