To run this app follow the next steps
- Clone this repository.
- Run
cd events-api
to enter directory.
- Run
npm install
to download dependencies.
- Run
touch .env
to create .env file.
- Add database url on your .env file
DATABASE_URL: [YOUR POSTGRES DATABASE URL]
to be able to connect to your database.
- Run
npx prisma migrate dev
to run migrations.
- Run
npm start
to run the server.
-
The api will be running on http://localhost:4000.
-
Access http://localhost:4000/api-docs to visit documentation.
- Run
cd events-client
to enter directory.
- Run
npm install
to download dependencies.
12.. Run
npm start
to run the client.
- Access http://localhost:3000 to visit client.
- To test the api run:
cd events-api
npm test
- CRUD operations with Users and Events.
- Search Users and Events.
- Testing with Jest.
- OpenAPI documentation.