#Project Assigment
Teachers need a system where they can perform administrative functions for their students. Teachers and students are identified by their email addresses.
$ git clone https://github.com/zymplsi/express-typeorm-tsr-api.git
$ cd express-typeorm-tsr-api
$ npm install
$ npm run start:dev
Launch the browser to http://localhost:3000/api-docs
- install MySQL https://dev.mysql.com/downloads/mysql/
- (Optional) Install MySQL WorkBench https://dev.mysql.com/downloads/workbench/
- Set the MySQL connection to the app. The json file for the database connection configuration can be found at ormconfig.json
{
"host": "localhost",
"port": 3306,
"username": "root",
"password": "password",
"database": "test"
}
- Start the MySQL server and test the connection to the running app.
- Create the database
test
.
There are unit tests for the 4 API controllers.
$ npm run test
The API endpoints are available on the API Explorer at http://localhost:3000/api-docs